using boost in x64 app
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 But when I link it to my library I get many warnings like the following 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) 1>..\..\3rdparty\boost\boost/archive/detail/abi_prefix.hpp(11) : warning C4103: 'd:\brokaw.x64\3rdparty\boost\boost\archive\detail\abi_prefix.hpp' : alignment changed after including header, may be due to missing #pragma pack(pop) 1>..\..\3rdparty\boost\boost/archive/basic_binary_oprimitive.hpp(52) : warning C4103: 'd:\brokaw.x64\3rdparty\boost\boost\archive\basic_binary_oprimitive.hpp' : alignment changed after including header, may be due to missing #pragma pack(pop) The library builds but with 892 of these boost warnings 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@basic_iarchive@detail@archive@boost@ @QEAAXPEAXAEBVbasic_iserializer@234@@Z) 2>overlaylibd.lib(bsVolumePolygons.obj) : error LNK2019: unresolved external symbol "public: void __cdecl boost::archive::detail::basic_iarchive::load_object(void *,class boost::archive::detail::basic_iserializer const &)" (?load_object@basic_iarchive@detail@archive@boost@ @QEAAXPEAXAEBVbasic_iserializer@234@@Z) referenced in function "private: void __cdecl bs::Volume::Serialize::load<class boost::archive::binary_iarchive>(class boost::archive::binary_iarchive &,unsigned int)" ( ??$load@Vbinary_iarchive@archive@boost@@@Serialize@Volume@bs@@AEAAXAEAVbinary_iarchive@archive@boost@@I@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 Thank you LeRetha Childress
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@basic_iarchive@detail@archive@boost@ @QEAAXPEAXAEBVbasic_iserializer@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@ivembh.de ! www.ivembh.de * * Geschäftsführer: ! Sitz des Unternehmens: Hannover * Prof. Dr.-Ing. Thomas Siefer ! Amtsgericht Hannover, HRB 56965 * PD Dr.-Ing. Alfons Radtke !
participants (2)
-
Juergen Hunold
-
LeRetha Childress