Boost logo

Boost Users :

Subject: Re: [Boost-users] Linking with Boost on x64
From: Iskandar Prins (iprins_at_[hidden])
Date: 2010-03-24 08:13:12


Thanks a lot :-) that did the trick

-----Original Message-----
From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Vladimir Prus
Sent: Wednesday, March 24, 2010 12:44
To: boost-users_at_[hidden]
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 <my_path>/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_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net