Reputation: 4287
I came across a problem yesterday where my program failed as 32 bit process.
I had a dylib compiled as 64 bit and I was using it on 64 bit application. But when I turned it to 32 bit for testing and tried to load it, it did not worked. dlopen() returned NULL?
Do I need to have 32 bit and 64 bit dylib for 32 bit and 64 bit binary respectively? Is there any work around?
Upvotes: 2
Views: 1398
Reputation: 22930
Upvotes: 2
Reputation: 206851
Yes, you need 32bit libs for 32bit processes, and 64bit libs for 64bit processes. There is no workaround.
Upvotes: 4