Boost logo

Boost Users :

Subject: Re: [Boost-users] MingW compilation errors
From: Frédéric Bron (frederic.bron_at_[hidden])
Date: 2012-11-03 19:03:34


> Alas, whenever I use a header which invokes such a library in Code::Blocks
> chained with MingW I get these errors:
>
> undefined reference to _Unwind_SiLj_Register undefined reference to
> _Unwind_SiLj_Unregister
> undefined reference to _Unwind_SiLj_Resume

It has probably to do with sjlj exceptions in g++. Personnaly I build
my own mingw cross compiler (linux->windows) with the following
option: --disable-sjlj-exceptions. Otherwise, I can get that sort of
issues.
But then, I build boost with the cross compiler on linux. The toolset
is gcc, not mingw. I can still use the libraries on windows with
CodeBlocks.

My command line for b2 is:
./b2 --layout=system --user-config=user-config.jam link=static
theading=multi runtime-link=shared target-os=windows threadapi=win32
variant=release install
with user-config.jam containing:
using gcc : : i686-pc-mingw32-g++ : <compileflags>-DBOOST_THREAD_USE_LIB ;

Hope this can help you.

Cheers,

Frédéric


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