
Dear Users,
I am experiencing a lot of issues in compiling my VC 2010 projects with a
64 bits machin (while they work happily witha 32 bits).
I downloaded the 1_51 version of boost for 64bits and I obtained the
following error with the serialization library:
Error 495 error LNK1104: cannot open file
'libboost_serialization-vc100-mt-gd-1_51.lib
Then I tried some older version ( 1_47, i ) but I received this series of
compiling errors related again to the xml archive.
Error 493 error LNK2019: unresolved external symbol "protected: __cdecl
boost::archive::xml_oarchive_impl<class
boost::archive::xml_oarchive>::xml_oarchive_impl<class
boost::archive::xml_oarchive>(class std::basic_ostream

Good morning Simone,
To fix the LNK1104, you must to tell the linker where to look for
libraries to link to. This setting is under Linker -> General -> Additional
Library Directories.
Also do not mix 32/64 bit libraries. I had the same problem long time and
to fix it I rebuild the BOOST libs in 64 bits.
Hope this help.
Cheers
On Fri, Jan 11, 2013 at 11:20 AM, simone pilozzi
Dear Users, I am experiencing a lot of issues in compiling my VC 2010 projects with a 64 bits machin (while they work happily witha 32 bits). I downloaded the 1_51 version of boost for 64bits and I obtained the following error with the serialization library: Error 495 error LNK1104: cannot open file 'libboost_serialization-vc100-mt-gd-1_51.lib Then I tried some older version ( 1_47, i ) but I received this series of compiling errors related again to the xml archive.
Error 493 error LNK2019: unresolved external symbol "protected: __cdecl boost::archive::xml_oarchive_impl<class boost::archive::xml_oarchive>::xml_oarchive_impl<class boost::archive::xml_oarchive>(class std::basic_ostream
&,unsigned int)" ( ??0?$xml_oarchive_impl@Vxml_oarchive@archive@boost@@@archive@boost@@IEAA@AEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@I@Z) referenced in function "public: __cdecl boost::archive::xml_oarchive::xml_oarchive(class std::basic_ostream &,unsigned int)" ( ??0xml_oarchive@archive@boost@@QEAA@AEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@I@Z ) Tried to build boost 1_51 with the 64bits using boostrap but it did not find build.bat since it is missing (I found boost-build.jam) Any suggestion?
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Didier JP GF Cornelis de Wittlaan 472 2582CT Den Haag. gsm :+31 618 065 223 landline :+31 702 113 290

Thanks Didier. I finally used already build binaries from this website :
http://boost.teeks99.com/
Have a good day
Simone
On 11 January 2013 11:54, Didier J-P Guion Firmin
Good morning Simone,
To fix the LNK1104, you must to tell the linker where to look for libraries to link to. This setting is under Linker -> General -> Additional Library Directories. Also do not mix 32/64 bit libraries. I had the same problem long time and to fix it I rebuild the BOOST libs in 64 bits. Hope this help.
Cheers
On Fri, Jan 11, 2013 at 11:20 AM, simone pilozzi
wrote:
Dear Users, I am experiencing a lot of issues in compiling my VC 2010 projects with a 64 bits machin (while they work happily witha 32 bits). I downloaded the 1_51 version of boost for 64bits and I obtained the following error with the serialization library: Error 495 error LNK1104: cannot open file 'libboost_serialization-vc100-mt-gd-1_51.lib Then I tried some older version ( 1_47, i ) but I received this series of compiling errors related again to the xml archive.
Error 493 error LNK2019: unresolved external symbol "protected: __cdecl boost::archive::xml_oarchive_impl<class boost::archive::xml_oarchive>::xml_oarchive_impl<class boost::archive::xml_oarchive>(class std::basic_ostream
&,unsigned int)" ( ??0?$xml_oarchive_impl@Vxml_oarchive@archive@boost@@@archive@boost@@IEAA@AEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@I@Z) referenced in function "public: __cdecl boost::archive::xml_oarchive::xml_oarchive(class std::basic_ostream &,unsigned int)" ( ??0xml_oarchive@archive@boost@@QEAA@AEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@I@Z ) Tried to build boost 1_51 with the 64bits using boostrap but it did not find build.bat since it is missing (I found boost-build.jam) Any suggestion?
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Didier JP GF Cornelis de Wittlaan 472 2582CT Den Haag. gsm :+31 618 065 223 landline :+31 702 113 290
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Hi Are you sure you compiled boost serialization in 64 bit too? I don't use boost serialization, but I compile it fine in 64bit, Boost 1.52 in VS2012 (with or without update1). To me you just don't have the right binaries. Joel Lamotte

I can't. I followed this procedure but failed
http://stackoverflow.com/questions/2629421/how-to-use-boost-in-visual-studio...
But, when running bootstrap there was this error
.\build.bat is not recognized
In fact I have boost-build.jam but not build.bat in my root.
Anyway can you outline your compiling procedure ? I have VS2010 and Boost
1.51
Thanks in advance
On 11 January 2013 13:14, Klaim - Joël Lamotte
Hi
Are you sure you compiled boost serialization in 64 bit too? I don't use boost serialization, but I compile it fine in 64bit, Boost 1.52 in VS2012 (with or without update1). To me you just don't have the right binaries.
Joel Lamotte
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

On Fri, Jan 11, 2013 at 1:27 PM, simone pilozzi
I can't. I followed this procedure but failed
http://stackoverflow.com/questions/2629421/how-to-use-boost-in-visual-studio... But, when running bootstrap there was this error .\build.bat is not recognized In fact I have boost-build.jam but not build.bat in my root. Anyway can you outline your compiling procedure ? I have VS2010 and Boost 1.51
This is indeed not the proper way to compile recent boost versions. You should use b2 (that is the build tool, replacing bjam). The instructions are there: http://www.boost.org/doc/libs/1_52_0/more/getting_started/windows.html (or there for 1.51: http://www.boost.org/doc/libs/1_51_0/more/getting_started/windows.html but I believe it's the same) My personal boost build script look like that: call bootstrap.bat call b2 <insert your options here> install The actual script is (I'm building for VS2010, vs2012 in both 32 and 64bit - I use this batch script outside the boost directory where I got all the sources): cd .\boost call bootstrap.bat call b2 --prefix=. --buid-type=complete toolset=msvc-10.0 architecture=x86 install call b2 --prefix=. --buid-type=complete --libdir=./lib/x64 toolset=msvc-10.0 architecture=x86 address-model=64 install call b2 --prefix=. --buid-type=complete toolset=msvc-11.0 architecture=x86 install call b2 --prefix=. --buid-type=complete --libdir=./lib/x64 toolset=msvc-11.0 architecture=x86 address-model=64 install Hope it helps. Joel Lamotte
participants (3)
-
Didier J-P Guion Firmin
-
Klaim - Joël Lamotte
-
simone pilozzi