• 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
Re: more search path stuff
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more search path stuff


  • Subject: Re: more search path stuff
  • From: David Dunham <email@hidden>
  • Date: Thu, 9 Jun 2005 15:47:39 -0700

At 18:06 -0400 05-06-09, Cameron Hayne wrote:

Do I need to add a search path even though the .h is in my project?

When compiling the file /Volumes/GameHouse/WordInlay/HighScoreDialog.cpp, the compiler will look for header files in the folder /Volumes/GameHouse/WordInlay (as well as in the system folders and in the folders you have specified via a search path). Thus it is looking for /Volumes/GameHouse/WordInlay/sprite/DialogSprite.h which of course does not exist.

So much for the porting guide:

"it is generally recommended that your project include explicit references to its header files. For example, when you add a .c file to your Xcode project, you don't typically add a search path for the associated header file. Instead, you drag the actual header file into a group in the Groups & Files list in the project to add a reference to the header."

So it looks like I have to set the Header Search Paths to something like

../sprite ../system -

(I need the - otherwise my string.h gets picked up in <Carbon/Carbon.h>)

which results in

cc1plus: note: obsolete option -I- used, please use -iquote instead

I don't see a way to use -iquote from Xcode...
--

David Dunham     A Sharp, LLC
Voice/Fax: 206 783 7404     http://a-sharp.com
Efficiency is intelligent laziness.
_______________________________________________
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


References: 
 >more search path stuff (From: David Dunham <email@hidden>)
 >Re: more search path stuff (From: Cameron Hayne <email@hidden>)

  • Prev by Date: Re: Killing a compile process?
  • Next by Date: Re: Xcode 2.1 CVS access non-functional.
  • Previous by thread: Re: more search path stuff
  • Next by thread: Command-K not compiling
  • Index(es):
    • Date
    • Thread