Peter Jacobs
Peter Jacobs

Reputation: 1667

Linking a 32-bit shared library with Intel 64-bit architecture (x86_64) on MacOSX

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

Answers (1)

user149341
user149341

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

Related Questions