Re: more search path stuff
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