Boost logo

Boost Users :

Subject: [Boost-users] [serialization] linker error with static build of serialization on Mingw gcc 4.4.0
From: Philipp Münzel (mailing-lists_at_[hidden])
Date: 2010-10-16 12:17:34


Hi fellow users,

I build boost 1.43 on windows, using mingw with gcc 4.4.0:
Using built-in specs.
Target: mingw32
Configured with: ../gcc-4.4.0/configure --enable-languages=c,ada,c++,fortran,java,objc,obj-c++ --disable-sjlj-exceptions --enable-shared --enable-libgcj --enable-libgomp --with-dwarf2 --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-runtime-libs --prefix=/mingw --with-gmp=/mingw/src/gmp/root --with-mpfr=/mingw/src/mpfr/root --build=mingw32
Thread model: win32
gcc version 4.4.0 (GCC)

with the following command:

bjam.exe install -q --layout=system --with-system --with-thread --with-python --with-serialization toolset=gcc variant=release link=static threading=multi runtime-link=static

When I now build a shared library, itself linking statically the libboost_serialization.a, I get the following linker error:

Cannot export _ZN5boost13serialization9singletonINS_7archive6detail12_GLOBAL__N_
13mapI24portable_binary_iarchiveEEE12get_instanceEv: symbol not found
Cannot export _ZN5boost13serialization9singletonINS_7archive6detail12_GLOBAL__N_
13mapI24portable_binary_iarchiveEEE12is_destroyedEv: symbol not found
Cannot export _ZN5boost13serialization9singletonINS_7archive6detail12_GLOBAL__N_
13mapI24portable_binary_iarchiveEEE18get_const_instanceEv: symbol not found
Cannot export _ZN5boost13serialization9singletonINS_7archive6detail12_GLOBAL__N_
13mapI24portable_binary_iarchiveEEE20get_mutable_instanceEv: symbol not found
Cannot export _ZN5boost13serialization9singletonINS_7archive6detail12_GLOBAL__N_
13mapI24portable_binary_oarchiveEEE12get_instanceEv: symbol not found
Cannot export _ZN5boost13serialization9singletonINS_7archive6detail12_GLOBAL__N_
13mapI24portable_binary_oarchiveEEE12is_destroyedEv: symbol not found
Cannot export _ZN5boost13serialization9singletonINS_7archive6detail12_GLOBAL__N_
13mapI24portable_binary_oarchiveEEE18get_const_instanceEv: symbol not found
Cannot export _ZN5boost13serialization9singletonINS_7archive6detail12_GLOBAL__N_
13mapI24portable_binary_oarchiveEEE20get_mutable_instanceEv: symbol not found
collect2: ld returned 1 exit status

Am I missing some build step?

Regards,
Philipp


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