Boost logo

Boost Users :

Subject: Re: [Boost-users] Linking with Boost on x64
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2010-03-24 07:43:53


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 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