• 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: Cameron Hayne <email@hidden>
  • Date: Thu, 9 Jun 2005 18:06:07 -0400

On 9-Jun-05, at 2:16 PM, David Dunham wrote:

In file included from /Volumes/GameHouse/WordInlay/ HighScoreDialog.cpp:16:
/Volumes/GameHouse/WordInlay/HighScoreDialog.h:10:33: error: sprite/ DialogSprite.h: No such file or directory


(it would be /Volumes/GameHouse/sprite/DialogSprite.h)

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.


You should look at the build command lines that show the options passed to the compiler - these are in the detailed build result section which is the middle of the 3 panes in the Build Results window - you probably have to slide the pane separator (with a little dot) up to see it.
If there isn't a "-I" with a folder specified, then the compiler isn;t looking anywhere except in the folder where the .cpp file is, and in the system folders.


--
Cameron Hayne
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


  • Follow-Ups:
    • Re: more search path stuff
      • From: David Dunham <email@hidden>
References: 
 >more search path stuff (From: David Dunham <email@hidden>)

  • Prev by Date: Re: Cross development with SDK 10.3.9 not compatible with 10.3.8
  • Next by Date: Re: Killing a compile process?
  • Previous by thread: Re: more search path stuff
  • Next by thread: Re: more search path stuff
  • Index(es):
    • Date
    • Thread