Boost logo

Boost Users :

Subject: [Boost-users] Need help with using Boost::Serialization on AmD64, Windows, MSVC 8.0
From: Sahib Aulakh (Sahib.Aulakh_at_[hidden])
Date: 2008-10-20 16:51:16


I am building boost using the following command; this is done from the command window of MSVC 2005.

\boost-jam-3.1.16-1-ntx86\bjam --build-dir=c:\boost-build --toolset=msvc --build-type=complete --address-model=64

The intention is to build for amd64 target. Is this the right command? Should toolset be specified as "msvc-8.0_64"?

I am trying to use serialization library but keep getting linker errors like the following:

1>d:\source\ux_a_2\private\frontend\fex\search\searchconfigcontainer.obj : error LNK2019: unresolved external symbol "public: __cdecl boost::archive::basic_binary_oprimitive<class boost::archive::binary_oarchive,char,struct std::char_traits<char> >::~basic_binary_oprimitive<class boost::archive::binary_oarchive,char,struct std::char_traits<char> >(void)" (??1?$basic_binary_oprimitive_at_Vbinary_oarchive_at_archive@boost@@DU?$char_traits_at_D@std@@@archive_at_boost@@QEAA_at_XZ) referenced in function "public: __cdecl boost::archive::binary_oarchive_impl<class boost::archive::binary_oarchive,char,struct std::char_traits<char> >::~binary_oarchive_impl<class boost::archive::binary_oarchive,char,struct std::char_traits<char> >(void)" (??1?$binary_oarchive_impl_at_Vbinary_oarchive_at_archive@boost@@DU?$char_traits_at_D@std@@@archive_at_boost@@QEAA_at_XZ)

There seems to be some internet chatter related to this at http://www.nabble.com/using-boost-in-x64-app-td19804910.html.

However, I have been unable to make this thing work.

If I create a standalone project in VC and use serialization code then it works all fine; however, the standalone code was written in 32bit mode.

I will appreciate any clues anyone can provide.
Thanks.



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