• 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: unknown required load command 0x80000022
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unknown required load command 0x80000022


  • Subject: Re: unknown required load command 0x80000022
  • From: Peter O'Gorman <email@hidden>
  • Date: Mon, 26 Oct 2009 14:02:22 -0500

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
_______________________________________________
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


  • Follow-Ups:
    • Re: unknown required load command 0x80000022
      • From: Grant Limberg <email@hidden>
References: 
 >unknown required load command 0x80000022 (From: Grant Limberg <email@hidden>)

  • Prev by Date: Project templates & encoding
  • Next by Date: Re: unknown required load command 0x80000022
  • Previous by thread: unknown required load command 0x80000022
  • Next by thread: Re: unknown required load command 0x80000022
  • Index(es):
    • Date
    • Thread