Re: Including C/C++ headers
Re: Including C/C++ headers
- Subject: Re: Including C/C++ headers
- From: Andrew Wood <email@hidden>
- Date: Thu, 7 May 2009 13:04:47 +0100
Ive been trying some more and discovered that even though the lib
search path is set for the target & project, the dynamic linker is
still looking elsewhere as the following screenshot shows:
http://www.simple.org/xcode.png
On 7 May 2009, at 11:21, Andrew Wood wrote:
That should say "Im now having a problem getting the dynamic linker
to find the mysql client lib at runtime"
On 7 May 2009, at 11:18, Andrew Wood wrote:
Thanks Jason. Ive managed to fix it by setting up the search path
for the target as opposed to the project itself :S
I would have thought the target would 'inherit' those settings from
the project but obviously not.
Im not having a problem getting the dynamic linker to find the
mysql client lib at runtime.
The mysql library I have is a pre-built universal binary which
works ok when I compile at the command line.
On the command line I had to set the DYLD_LIBRARY_PATH variable and
it seems the same problem is occuring in XCode. The correct folder
is set in the targets library search path, and its listed in the
Groups & Files list under Linked Frameworks but crashes at runtime
with:
dyld_fatal_error
Im used to compiling from the command line on Linux but Im new to
XCode.
Thanks
Andrew
On 7 May 2009, at 02:38, Jason Foreman wrote:
There are two header include paths: system headers and user
headers. If you use `#include <foo.h>', then the system header
path is searched for foo.h, and `#include "foo.h"' searches the
user header path. You can examine the Build Results window (Build-
>Build Results, or cmd-shift-B) to see the command line that is
used to invoke gcc, to see exactly what options are passed to it.
Which search path did you set up to find mysql.h? You might try
the "Always Search User Paths" build option to look for system-
style includes in the user header path.
Jason
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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