How do you force an Xcode C++ tool to statically link to a library?
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