[SOLVED] Static C++ lib under 10.5 and 10.6
[SOLVED] Static C++ lib under 10.5 and 10.6
- Subject: [SOLVED] Static C++ lib under 10.5 and 10.6
- From: Sven <email@hidden>
- Date: Mon, 12 Oct 2009 21:09:55 +0000 (UTC)
On Mon, 12 Oct 2009, Sven wrote:
Hello,
I've created a standard Cocoa Application project and added a static library
to it (in this case libid3.a) which I built via configure and make. All this
was set up on 10.5.
I got the project to compile without any problems but now I am on a different
mac (10.6) and I cannot get the project to build. I get the following errors
ld: warning: in /Developer/SDKs/MacOSX10.6.sdk/usr/local/lib/libid3.dylib,
file is not of required architecture
ld: symbol(s) not found
Both if I set the target to 10.5 and 10.6. I don't know why it's looking for
the dylib if I want to build against the static library.
I'm guessing that perhaps I need to use the .a that's been compiled on 10.5,
but I don't know how to set configure to compile for a different OS X
version. Or perhaps I should I include the .a in the project folder (both the
10.5 and 10.6 builds)??
I should mention that I also created a project under 10.6 linking against the
10.6 build of the static library which worked fine, so the .a on both
platforms works for projects created on the respective platform.
My aim is to be able to build the project to run on 10.5 and 10.6. There's no
features in 10.6 that I require (as of yet) so building just for 10.5 would
be fine.
Ok, turns out that it was a 64bit/32bit issue. I recompiled the library as
32bit on 10.6 and it's all ok now.
./Sven
_______________________________________________
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