|
Boost : |
Subject: [boost] archive_exception causes Link failure serialization
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2011-04-06 10:34:27
I am trying to rebuild an existing demo program for Johan Rade's nonfinite
facets from François Mauger
The program was previously tested with Boost 1.44, gcc 4.4.1, Linux/i686
(32bits)
Using MSVC 10, it compiles OK, but fails to link.
Can anyone gives me any clues what I am doing wrong?
Thanks!
Paul
------ Rebuild All started: Project: nonfinite_num_serialization,
Configuration: Release Win32 ------
nonfinite_num_facet_serialization.cpp
Searching libraries
Searching C:\Program Files\Microsoft
SDKs\Windows\v7.0A\lib\kernel32.lib:
<snip>
Searching C:\Program Files\Microsoft Visual Studio
10.0\VC\lib\libcpmt.lib:
Searching
I:\boost-trunk\stage\lib\libboost_serialization-vc100-mt-s-1_47.lib:
Finished searching libraries
Creating library
J:\Cpp\MathToolkit\test\Math_test\Release\nonfinite_num_serialization.lib
and object
J:\Cpp\MathToolkit\test\Math_test\Release\nonfinite_num_serialization.exp
Searching libraries
Searching C:\Program Files\Microsoft
SDKs\Windows\v7.0A\lib\kernel32.lib:
<snip>
Searching C:\Program Files\Microsoft Visual Studio
10.0\VC\lib\libcpmt.lib:
Searching
I:\boost-trunk\stage\lib\libboost_serialization-vc100-mt-s-1_47.lib:
Searching C:\Program Files\Microsoft Visual Studio
10.0\VC\lib\LIBCMT.lib:
Searching C:\Program Files\Microsoft Visual Studio
10.0\VC\lib\OLDNAMES.lib:
Finished searching libraries
nonfinite_num_facet_serialization.obj : error LNK2001: unresolved external
symbol "public:
__thiscall boost::archive::archive_exception::archive_exception(
enum boost::archive::archive_exception::exception_code,char const *,char
const *)"
(??0archive_exception_at_archive@boost@@QAE_at_W4exception_code_at_012@PBD1_at_Z)
J:\Cpp\MathToolkit\test\Math_test\Release\nonfinite_num_serialization.exe :
fatal error LNK1120: 1 unresolved externals
I have just rebuilt this library
I:\boost-trunk\stage\lib\libboost_serialization-vc100-mt-s-1_47.lib.
Library directory is I:\boost-trunk\stage\lib;$(LibraryPath) and appears to
searching in the right lib file.
Runtime library is /MT for release (I have also tried debug with similar
results).
The following includes are used in the demo program
#include <boost/cstdint.hpp>
#include <boost/serialization/nvp.hpp>
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/archive/xml_oarchive.hpp>
#include <boost/archive/xml_iarchive.hpp>
#include <boost/archive/codecvt_null.hpp>
Is there anywhere I should have told serialization/archive not to use
exceptions?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk