Linker flags set incorrectly ?
Linker flags set incorrectly ?
- Subject: Linker flags set incorrectly ?
- From: Alain Schartz <email@hidden>
- Date: Wed, 11 Jul 2007 06:12:58 -0700
First, let me apologize if this may be a little off-topic, alas I need this for a Cocoa project I'm working on so I thought maybe someone would give it a shot...
I'm trying get Xcode to link my project against the mysqlclient library (version 5.0.46). But it refuses, saying that said library is not compatible with the project settings (cputype i386 for the library, ppc for the specified -arch flag). Unnecessary to say, the library is not linked in and I get undefined symbols all over the place.
What I don't understand is how the "ppc" flag gets into this, I did set the project architecture to i386 (and only i386) BUT if I analyze the build transcript I see a call to ld specifying the ppc flag. Now this seems odd, since the EXACT SAME call is repeated further down, this time specifying an i386 cpu type. It seems to me that the linker is trying to build a universal binary and ignores the project architecture setting. Is this behaviour normal ?
I tried cleaning, building a universal binary, building for PPC ony, building for i386 only, adding -arch i386 to "other linker flags"; all with no success. Oh and I'm fairly certain that the mysql distribution is for i386 since I got the DB up and running in no time. As a last hint, I'm working on an Intel PBPro, OS X 10.4.10 with Xcode 2.4.1...
So - did anyone else experience this kind of problem - and what was the solution ?
Thanks in advance for any input !
Alain
_______________________________________________
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