Re: Partial includes syntax
Re: Partial includes syntax
- Subject: Re: Partial includes syntax
- From: Rush Manbert <email@hidden>
- Date: Thu, 01 Sep 2005 14:14:25 -0700
Philippe Casgrain wrote:
I am porting our project from CW to Xcode, and one problem I am
experiencing is this. On disk, we have the following structure:
Project/
Document/
Document.h
In our source code, if we type:
#include "Document/DocEvent.h"
that does not compile (error: Document/DocEvent.h: No such file or
directory).
But if we replace that line with:
#include "DocEvent.h"
Then everything is fine. Xcode can find the file, I can Cmd-D on the
file name to open it. But it won't let us #include with a prefix.
Is there a flag we can set? This code is cross-platform, so it has to
build using CW, gcc and Visual C++...
Philippe,
I assume you mean "Document.h", given the directory structure you showed.
I think all you need is a new include path in your Xcode project that
points to the Project directory. Once you do that the first form
(#include "Document/Document.h") should work. I do this in my projects
and it works just fine.
- Rush
_______________________________________________
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