
22 Mar
2011
22 Mar
'11
1:36 p.m.
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...