Reputation: 11
I want to build an application on Centos 5.6 64bit as a 64bit application and link it with a 32bit library. How can i do this and what is the switches i need to pass to the gcc to compile and link. Thanks.
Upvotes: 1
Views: 162
Reputation: 101446
You cannot. A 64 bit application must link to 64 bit libraries. If the library you must use is 32 bit, you must compile your application 32 bit as well.
Upvotes: 2