Re: mySQL client lib linking problem...
Re: mySQL client lib linking problem...
- Subject: Re: mySQL client lib linking problem...
- From: Michael Davey <email@hidden>
- Date: Mon, 23 Nov 2009 16:52:03 +1100
The dylib is the one that comes from the OS X build of mySQL - I did not build it myself :o(
On 23 Nov 2009, at 16:50, Karolis Ramanauskas wrote:
> I think your dylib file has been compiled under debug only. When you compile your app under release, the compiler complains that dylib is compiled under debug. Recompile your dylib under release then compile your app under release. Better yet you should add you dylib project (drag and drop) to your app project and then in your app's target add dylib as "direct dependence" this way it will recompile whenever you compile your app.
>
> Karolis
>
> On Sun, Nov 22, 2009 at 11:19 PM, Michael Davey <email@hidden> wrote:
> I am using the mysql c library in my application, and have wrapped the C calls in an objective-C class (source available if needed).
>
> I have added the linking references as per instructions I have found on the web and when I run my application in debug mode everything works just fine, however, when I build it for release, I get a lot of errors that seem to stem from the following:
>
> ld: warning: in /usr/local/mysql/lib/libmysqlclient_r.dylib, file is not of required architecture
>
>
> What does this mean if my application compiles and runs just fine in debug mode? I have checked and the links to the zlib and mysqlclient are present for both build configurations, but for whatever reason, it will not build in release.
>
> Any help will be gratefully received...
>
> Mikey_______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden