• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
XCode and C++ projects again
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XCode and C++ projects again


  • Subject: XCode and C++ projects again
  • From: Livio Isaia <email@hidden>
  • Date: Tue, 27 Mar 2007 08:52:58 +0200

Sorry to bother you again, but I'm still at the same point...

I read again the XCode documentation and it seems that all I have to do (in order to use c++ files in a XCode project) is add them to the project itself. Well: in my case it doesn't work.
For example:
Let's say I have file main.m with statement #include <A/b/temp.h>, and file temp.h with #include <D/e/sub.h>.
So I add the directories A and D to my project, right?
At this point XCode tells me it cannot find <A/b/temp.h>.
I must change the statement <A/b/temp.h> to <temp.h> in order to let it find the file.
Okay: the problem is that I must also change <D/e/sub.h> to <sub.h> and so on for all the involved files, but they are very many, and some of them are even protected.
Another example is file glx.h in Developer/SDKs/.../usr/X11R6/include/GL (which is protected):
it presents #include <GL/gl.h> and this returns the same error (and gl.h is in the same directory - GL): perhaps I don't add the right directory to the project (I added GL)?
It's strange that it has also #include <X11/Xlib.h>, which seems to work (X11 is in ../include/, beside GL)...


I cannot imagine everybody has failed to write the files, so I know that probabily is my fault, but can't really work it out.
Any further idea?
Many thanks indeed,
regards, livio.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: XCode and C++ projects again
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: Why are Xcode "updates" so friggin' big??
  • Next by Date: Re: XCode and C++ projects again
  • Previous by thread: Re: Why are Xcode "updates" so friggin' big??
  • Next by thread: Re: XCode and C++ projects again
  • Index(es):
    • Date
    • Thread