Reputation: 1667
I have a 32-bit shared library that I need to link with my application (a 64-bit version is apparently not available, and I do not have the source code to rebuild it). However, I must build my application using 64-bit architecture due to a bug I've encountered with the Silverlight plugin when building for 32-bit architecture. The details of this bug can be found here
Needless to say, I get the following linker warning
ld: warning: ignoring file xxx.dylib, file was built for unsupported file format which is not the architecture being linked (x86_64)
So is there any way to link a 32-bit shared library when building for the 64-bit architecture?
Upvotes: 2
Views: 1134
Reputation:
No, there is not. 32-bit code and 64-bit code are fundamentally incompatible with one another; there is no way to link a 64-bit binary to a 32-bit library or vice versa.
Upvotes: 2