• 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
How do you force an Xcode C++ tool to statically link to a library?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do you force an Xcode C++ tool to statically link to a library?


  • Subject: How do you force an Xcode C++ tool to statically link to a library?
  • From: Graham Reitz <email@hidden>
  • Date: Thu, 22 Nov 2007 11:50:24 -0600

I am trying to force xcode to statically link against the mysqlclient_r.a library but it prefers to look for the dylib first (see below). The dylib does exist but I can't get the application to look there.  

Or another way would be to get it to look in the Library search path, which is where the dylib is instead of /usr/local/mysql/lib/mysql.  Can I put the dylib in the application directory?

Any help would be greatly appreciated.

dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient_r.15.dylib
  Referenced from: /Users/grahamreitz/Development/tac/build/Debug/tac
  Reason: image not found

The Debugger has exited due to signal 5 (SIGTRAP).The Debugger has exited due to signal 5 (SIGTRAP).


Thanks,
graham
 _______________________________________________
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: How do you force an Xcode C++ tool to statically link to a library?
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: What can be in an IB Plugin?
  • Next by Date: Re: Build problem (again)
  • Previous by thread: Re: strange build issue
  • Next by thread: Re: How do you force an Xcode C++ tool to statically link to a library?
  • Index(es):
    • Date
    • Thread