|
Boost Users : |
Subject: Re: [Boost-users] Linking problems with boost serialization and MinGW
From: Jürgen Hunold (jhunold_at_[hidden])
Date: 2012-11-01 13:44:16
Hi Florian,
On Thursday, 1. November 2012 10:40:39 Florian Burkart wrote:
> #include <boost/archive/text_oarchive.hpp>
>
> struct Test
> {
> template<class Archive> void serialize(Archive& ar, const unsigned int) {
> ar & a; } void SerializeToFile(std::ostream& ostream) const
> {
> boost::archive::text_oarchive myar(ostream);
> myar & boost::serialization::make_nvp("test",this);
> }
> double a;
> };
Works with current trunk:
Creating library file: E:
\Home\hunold\src\devel\boost\bin.v2\libs\serialization\build\gcc-
mingw-4.6\debug\libboost_serialization-mgw46-mt-d-1_52.dll.a
gcc.link.dll bin\gcc-mingw-4.6\debug\liblinks.dll.a
Creating library file: bin\gcc-mingw-4.6\debug\liblinks.dll.a
This is using
E:\Home\hunold\src\test\seria>g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=e:/home/hunold/mingw32/bin/../libexec/gcc/i686-w64-
mingw32/4.6.3/lto-wrapper.exe
Target: i686-w64-mingw32
Configured with: /home/ruben/mingw-w64/toolchain/src/gcc/configure --host=i686-
w64-mingw32 --build=x86_64-linux-gnu --target=i686-
w64-mingw32 --with-sysroot=/home/ruben/mingw-
w64/toolchain/mingw32mingw32/mingw32 --prefix=/home/ruben/mingw-
w64/toolchain/mingw32
mingw32/mingw32 --with-libiconv-prefix=/home/ruben/mingw-
w64/toolchain/mingw32mingw32/prereq_install --with-gmp=/home/ruben/mingw-
w64/toolchain/mingw32mingw32/prereq_install --with-mpfr=/home/ruben/mingw-
w64/toolchain/mingw32mingw32/prereq_install --with-mpc=/
home/ruben/mingw-w64/toolchain/mingw32mingw32/prereq_install --with-
ppl=/home/ruben/mingw-w64/toolchain/mingw32mingw32/prereq_inst
all --with-cloog=/home/ruben/mingw-w64/toolchain/mingw32mingw32/prereq_install
--enable-cloog-backend=isl --with-host-libstdcxx='-
lstdc++ -lm -lgcc_eh' --enable-shared --enable-static --enable-threads=posix
--disable-multilib --enable-languages=c,lto,c++,fortr
an,objc,obj-c++,java --enable-libgomp --enable-sjlj-exceptions --enable-fully-
dynamic-string --disable-nls --disable-werror --enab
le-checking=release --disable-win32-registry --disable-rpath --disable-werror
CFLAGS='-O2 -mtune=core2 -fomit-frame-pointer -momit
-leaf-frame-pointer -fgraphite-identity -floop-interchange -floop-block -floop-
parallelize-all' LDFLAGS=
Thread model: posix
gcc version 4.6.3 20111208 (prerelease) (GCC)
This is Ruben van Boxems personal build of gcc-4.6.3 for mingw-w64.
Yours,
Jürgen
-- * Dipl.-Math. Jürgen Hunold ! * voice: ++49 4257 300 ! Fährstraße 1 * fax : ++49 4257 300 ! 31609 Balge/Sebbenhausen * jhunold_at_gmx.eu ! Germany
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