• 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:55:35 -0600

I guess you found the answer as I was typing my correction. Do you have the
source to dylib you are using?

On Sun, Nov 22, 2009 at 11:54 PM, Karolis Ramanauskas <email@hidden>wrote:

> I made a little mistake. It's not a debug/release issue, although that
> would give you similar problems. The dylib you have was compiled under
> different configuration! Is your project 64 bit or 32 bit? Try changing
> that.
>
>
> On Sun, Nov 22, 2009 at 11:52 PM, Michael Davey <email@hidden>wrote:
>
>> 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

References: 
 >mySQL client lib linking problem... (From: Michael Davey <email@hidden>)
 >Re: mySQL client lib linking problem... (From: Karolis Ramanauskas <email@hidden>)
 >Re: mySQL client lib linking problem... (From: Michael Davey <email@hidden>)
 >Re: mySQL client lib linking problem... (From: Karolis Ramanauskas <email@hidden>)

  • Prev by Date: Re: mySQL client lib linking problem...
  • Next by Date: Re: [SOLVED] CoreData/NSPersistentDocument initialization
  • Previous by thread: Re: mySQL client lib linking problem...
  • Next by thread: Re: mySQL client lib linking problem...
  • Index(es):
    • Date
    • Thread