• 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: Including C/C++ headers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Including C/C++ headers


  • Subject: Re: Including C/C++ headers
  • From: Andrew Wood <email@hidden>
  • Date: Thu, 7 May 2009 11:21:02 +0100

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
  • Follow-Ups:
    • Re: Including C/C++ headers
      • From: Andrew Wood <email@hidden>
References: 
 >Including C/C++ headers (From: Andrew Wood <email@hidden>)
 >Re: Including C/C++ headers (From: Jason Foreman <email@hidden>)
 >Re: Including C/C++ headers (From: Andrew Wood <email@hidden>)

  • Prev by Date: Re: Including C/C++ headers
  • Next by Date: Re: Including C/C++ headers
  • Previous by thread: Re: Including C/C++ headers
  • Next by thread: Re: Including C/C++ headers
  • Index(es):
    • Date
    • Thread