[LLVMdev] Link error using LLVM 2.0 based on XCode 4.0.1

yu jianhua,yu yujianhua1982 at 126.com
Thu Dec 22 01:11:37 PST 2011


Hey All;

Meet the following link error using LLVM 2.0 based on XCode 4.0.1, I don't know what does it mean and how to fix it?  please help, thanks. 

ld: bad codegen, pointer diff in ___cxx_global_var_init79 to global weak symbol __ZN5boost16exception_detail23exception_ptr_bad_allocILi42EE1eE for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang++ failed with exit code 1

ENV:
yuma:MyApp yujianhuayu$ clang -v
Apple clang version 2.0 (tags/Apple/clang-138) (based on LLVM 2.9svn)
Target: x86_64-apple-darwin10
Thread model: posix


BTW:
Seems link well for simulator but bad for device. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111222/d8bacf7d/attachment.html>


More information about the llvm-dev mailing list