Re: Including external Header files
Re: Including external Header files
- Subject: Re: Including external Header files
- From: "Wesley Smith" <email@hidden>
- Date: Thu, 16 Aug 2007 19:31:21 -0700
Did you check the command line output from xcode to see that it was
actually doing -I~/Documents/work/externals?
wes
On 8/16/07, Phil Hystad <email@hidden> wrote:
> Gang,
>
> I am attempting to compile a C++ project that I have been setting up
> in Xcode. This rather large C++ project consists of #include
> statements for standard library header files, for header files that
> are part of the project, and external header files that are not part
> of the project and not found in any of the standard search paths.
>
> So, how do I configure Xcode to find these external header files.
> Let's assume the following:
>
> (1) Include statement looks like this:
>
> #include "libx/header1.h"
> #include "libx/header2.h"
>
> (2) And, the headers of libx are defined in the following path:
>
> ~/Documents/work/externals/libx
>
>
> My first attempt is to define a compiler directive as follows:
>
> -I~/Documents/work/externals
>
> So that the subdirectory reference in the include "libx/" would
> properly be found
> by that particular path.
>
> This does not work. I still get errors that the include files cannot
> be found.
>
> I also tried creating a group and adding the include files of libx as
> a reference but
> this did not work. But, I am not surprised since I am not sure how
> the subdirectory
> reference of the #include statement gets properly resolved.
>
> So, can you help. How are you supposed to handle such a thing.
> Putting these header files directly into the source files of the
> project source is not acceptable. There must be a way to handle this
> on an external reference.
>
> thanks,
> phil
>
> _______________________________________________
> 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
>
_______________________________________________
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