• 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: mySQL client lib linking problem...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mySQL client lib linking problem...


  • Subject: Re: mySQL client lib linking problem...
  • From: Karolis Ramanauskas <email@hidden>
  • Date: Sun, 22 Nov 2009 23:50:04 -0600

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

  • Follow-Ups:
    • Re: mySQL client lib linking problem...
      • From: Michael Davey <email@hidden>
References: 
 >mySQL client lib linking problem... (From: Michael Davey <email@hidden>)

  • Prev by Date: mySQL client lib linking problem...
  • Next by Date: Re: mySQL client lib linking problem...
  • Previous by thread: mySQL client lib linking problem...
  • Next by thread: Re: mySQL client lib linking problem...
  • Index(es):
    • Date
    • Thread