Re: unknown required load command 0x80000022
Re: unknown required load command 0x80000022
- Subject: Re: unknown required load command 0x80000022
- From: Grant Limberg <email@hidden>
- Date: Mon, 26 Oct 2009 12:11:52 -0700
On Oct 26, 2009, at 12:02 PM, Peter O'Gorman wrote:
On 10/26/2009 01:16 PM, Grant Limberg wrote:
We're using the MySQL++ library for a project. I've built it on Snow
Leopard targeting MacOS 10.4 as the minimum version, but whenever I
try
to use it on Leopard (10.5), I get the following error when trying to
It's being built with gcc/g++ 4.0 and with the following environment
variables set prior to running the ./configure script:
export CC="gcc-4.0"
export CXX="g++-4.0"
export CFLAGS="-arch i386 -arch ppc -mmacosx-version-min=10.4
-DMAC_OS_X_VERSION_MIN_REQUIRED=1040 -isysroot
/Developer/SDKs/MacOSX10.4u.sdk"
export CXXFLAGS=$CFLAGS
export LDFLAGS="-arch i386 -arch ppc"
Any ideas on why I'm getting the above error on Leopard when built
from
Snow Leopard targeting 10.4?
Different people do different things with the use of CFLAGS at link
time. Some build systems automatically use CFLAGS when creating
executables, libraries, etc. Others don't (and people have varying
opinions on the ickyness of using CFLAGS at link time).
I haven't looked, but would guess that MySQL++ does not use CFLAGS
at link time, so you should add your -isysroot and -mmacosx-version-
min flags to LDFLAGS too.
I am not sure why you are adding a define for
MAC_OS_X_VERSION_MIN_REQUIRED to your CFLAGS, shouldn't you #include
<AvailabilityMacros.h> instead?
Peter
--
Peter O'Gorman
http://pogma.com
Alas, including these in the LDFLAGS had no effect. I still get the
same error when attempting to launch the app on a 10.5 machine.
Grant Limberg
email@hidden
http://www.cedrus.com/
_______________________________________________
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