Boost logo

Boost Users :

Subject: Re: [Boost-users] Project using Boost won't build with Xcode 4; complains about "global weak symbols"
From: Igor R (boost.lists_at_[hidden])
Date: 2011-03-22 09:36:54


> I'm using Boost in an iPhone app as a statically linked lib, and after
> updating to Xcode 4 the project won't build. It fails with this:
>
> ld: bad codegen, pointer diff in boost::system::error_category:
> :error_category()to global weak symbol vtable for
> boost::system::error_categoryfor architecture i386
>
> Happens for both simulator and device, after the same project built fine
> under previous Xcodes.
>
> Anybody have some insight on this and a solution?

I've also upgraded to Xcode4, and I'm struggling the same problems.
So far, I've rebuilt boost with the new tool-chain, and I'm playing
"Inline methods hidden" and "Symbols hidden by default" options of my
project - it eliminates some linker errors, but adds some other...


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net