Boost logo

Boost Users :

Subject: Re: [Boost-users] using boost in x64 app
From: Juergen Hunold (juergen.hunold_at_[hidden])
Date: 2008-10-04 15:28:31


Hi LeRetha !

On Friday 03 October 2008 20:56:47 LeRetha Childress wrote:
> I am using Windows Vista and Visual Studio 2005 to create my 64 bit
> application
>
> I used bjam to build my boost libraries with the following command
> bjam --toolset=msvc-8.0_64 stagedir=. --build-type=complete

Please be sure to include the toolset definition next time.

> 1>..\..\3rdparty\boost\boost/config/abi_prefix.hpp(19) : warning C4103:
> 'd:\brokaw.x64\3rdparty\boost\boost\config\abi_prefix.hpp' : alignment
> changed after including header, may be due to missing #pragma pack(pop)

> The library builds but with 892 of these boost warnings

This was discussed on the developers list and fixed in trunk:
See revision 49078
> URL: http://svn.boost.org/trac/boost/changeset/49078
> Log:
> Change msvc ABI to match the default on Win64.

The link above should give you the patch.

> Then when I build the driver for the app I get 219 linker errors like the
> following

> 2>overlaylibd.lib(bsVolumeLineStrip.obj) : error LNK2001: unresolved
> external symbol "public: void __cdecl
> boost::archive::detail::basic_iarchive::load_object(void *,class
> boost::archive::detail::basic_iserializer const &)"
> (?load_object_at_basic_iarchive_at_detail@archive_at_boost@
> @QEAAXPEAXAEBVbasic_iserializer_at_234@@Z)

> Most of them are for boost::archive , boost::serilization and boost::signal
> Can anyone tell me what I'm doing wrong or how to fix these issues

The question is: What are you doing ? Please provide at least the command line
used to link your app or even better a small Boost.Build based testcase. There
are lots of interesting ways msvc autolinking can do :-))

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold_at_[hidden]        ! www.ivembh.de
* 
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !

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