Relative user path problem
Relative user path problem
- Subject: Relative user path problem
- From: Wade Williams <email@hidden>
- Date: Thu, 10 Apr 2008 12:33:54 -0500
I've been searching the archives and can't find a solution to this
problem.
I have:
development/project/xcode_project
and
development/project/app/inc/main.h which says:
#include "../../lib/window/inc/app_window.h"
that is included by
development/project/app/src/main.cpp
and XCode cannot find the file.
As I recall, this is because XCode does not actually change the
working directory to the directory containing the source when it's
compiling.
I know some of the standard answers:
1) Change the include to just "app_window.h"
2) Move the source files underneath the XCode project folder
3) Setup a source tree and have all paths reference that source tree.
None of those options are really options however. This is cross-
platform source, and there's no reason why we shouldn't be able to use
a relative path in our project.
I've tried setting a user header path to:
development/project/app/src
thinking that when XCode tried to search that path for ../../lib/
window/inc/app_window.h it would find it, but that did not resolve the
issue.
Can someone remind me of how to fix this problem?
_______________________________________________
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