Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Linker problem: file was built for archive which is not the architecture being linked #11
I have a problem with the linker, which i was unable to resolve in the last days. It might be a bug within the linker or my configuration, but i am stuck and digging in the linker source code is the least favorite thing i'd like to do...
At first: The same test works on OSX when using clang++ instead of o64-clang++
Building the library is fine. Compiling and linking the example fails with the following errors:
I have used ranlib on the library. I have checked the architecture with otool/lipo and everything looks just right. It is definitly X86_64.
You can use this small test to verify the problem. (Same happens if you statically compile Boost and then want to link to it)
Any hints would be really appreciated.