Linking with Boost on x64
Hi all,
I have build the bjam tool and then I run the following:
bjam toolset=sun stdlib=sun-stlport address-model=64 stage
When I try to link with the generated libboost_thread.so
I get the following error:
ld: fatal: file
Iskandar Prins wrote:
Hi all,
I have build the bjam tool and then I run the following: bjam toolset=sun stdlib=sun-stlport address-model=64 stage
When I try to link with the generated libboost_thread.so I get the following error:
ld: fatal: file
/libboost_thread.so: wrong ELF class: ELFCLASS64 Does this mean that the libraries are compiled for 32bit instead of 64bit?
Rather, it seems like the library is built as 64-bit code, while your application is 32-bit. Are you passing -m64 or whatever option is suitable for the sun compiler when building your application? - Volodya
Thanks a lot :-) that did the trick -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Vladimir Prus Sent: Wednesday, March 24, 2010 12:44 To: boost-users@lists.boost.org Subject: Re: [Boost-users] Linking with Boost on x64 Iskandar Prins wrote:
Hi all,
I have build the bjam tool and then I run the following: bjam toolset=sun stdlib=sun-stlport address-model=64 stage
When I try to link with the generated libboost_thread.so I get the following error:
ld: fatal: file
/libboost_thread.so: wrong ELF class: ELFCLASS64 Does this mean that the libraries are compiled for 32bit instead of 64bit?
Rather, it seems like the library is built as 64-bit code, while your application is 32-bit. Are you passing -m64 or whatever option is suitable for the sun compiler when building your application? - Volodya _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Iskandar Prins
-
Vladimir Prus