Boost logo

Boost Users :

Subject: Re: [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-18 17:40:06


David Abrahams <dave <at> boostpro.com> writes:
> > And I have again to reply to myself: It looks like a known bug:
> > Searching for "boost cannot export symbol not found" google returned me
> > https://svn.boost.org/trac/boost/ticket/4670
> > and
> > https://svn.boost.org/trac/boost/ticket/4698
>
> It's back up.
>

Thanks for the heads-up.

However, I have alrady installed the patches (see previous mail) and I'm still
unable to use boost.serialization.

Without the patches, I get the linker error.
With the patches, boost doesn't even compile
> gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-4.4.0\
> release\link-static\runtime-link-static\threading-multi\
> polymorphic_iarchive.o
>
> In file included from ./boost/archive/detail/iserializer.hpp:81,
> from ./boost/archive/polymorphic_iarchive.hpp:33,
> from libs\serialization\src\polymorphic_iarchive.cpp:19:
> ./boost/serialization/collection_size_type.hpp:59:
> error: expected constructor, destructor, or type conversion
> before '(' token

I got so fed up, I dug my old gcc 3.4.5-powered backup of MinGW running to try a
build with it.
Result:

gcc.compile.c++ bin.v2\libs\serialization\build\gcc-mingw-3.4.2\
release\link-static\threading-multi\basic_text_wiprimitive.o
libs\serialization\src\basic_text_wiprimitive.cpp:14:2:
  #error "wide char i/o not supported on this platform"

"g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall
-mthreads -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I"." -c -o
"bin.v2\libs\serialization\build\gcc-mingw-3.4.2\release\
link-static\threading-multi\basic_text_wiprimitive.o"
"libs\serialization\src\basic_text_wiprimitive.cpp"

I also googled this one and found an open bug from boost 1.35 (!!!!)
Bottom line: boost-serialization is unusable with both mingw-gcc-3.4.5 and
mingw-gcc-4.4.0

Folks, this is utterly ridiculous. This is supposed to be the most portable and
most standards compliant library in the WORLD and it doesn't even COMPILE on
windows?!

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