Re: Extreme Search Path Problems!!!!!
Re: Extreme Search Path Problems!!!!!
- Subject: Re: Extreme Search Path Problems!!!!!
- From: Milton Sagen <email@hidden>
- Date: Thu, 4 Aug 2005 05:22:11 -0700
Where's the Xcode project? Is it in the "project" folder? Assuming,
from you note, its one level above the "project" folder then I'd try
"../project/code....". I had a similar problem and that was all it
took and that should also work for the windows side.
Gang,
I'm have a seriously bad day here trying to import a CW project into
Xcode and get it to compile.
The problem is that Xcode cannot find the include files. The
apparent reason is that the code has "pathed" includes. That is,
instead of a typical #include "foo.h" it uses #include "project/code/
headers/foo.h"
This seems to confuse Xcode and prevents it from finding the header
foo.h
I had added the root folder to the Header Search Paths (dragging it
in to the Search Paths UI to ensure the path is accurate relative to
the project) and made it recursive... no luck.
I've even added every single folder along the path and made them
recursive... still no luck. I even tried making them non
recursive... no luck.
If I simply change the include to be #include "foo.h" then Xcode is
happy. However, this approach is extremely tedious because the code
also compiles on windows and so I have to change every instance of
inclusion but only if using Xcode as we need to maintain the windows
build. So each:
#include "myproject/code/headers/foo.h"
has to become:
#ifdef XCODE
#include "foo.h"
#else
#include "project/code/headers/foo.h"
#endif
And we've got hundreds of files with hundreds of includes and so
on... an extreme amount of extremely tedious work...
So, is there something I'm missing with Xcode? Can it handle
"pathed" includes? What do I need to do to get it to find our header
files?
Thanks a vast, huge, ginormous amount ahead of time... if you
can help, you'll surely be preventing a massive and murderous going
postal rampage on my part...
Ando
_______________________________________________
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