• 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
Relative user path problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Relative user path problem
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: Link-Error XCode 3.0: -init can only be used with -dynamiclib
  • Next by Date: Re: Crash in dylib on Leopard, only on 64bit Intel
  • Previous by thread: Re: thin linking: "file is not of required architecture"
  • Next by thread: Re: Relative user path problem
  • Index(es):
    • Date
    • Thread