Re: [Boost-users] Boost + ICU in Windows with MinGW

In my past email I made a mistake, the ICU configure method I use was
a) ./configure --prefix=/mingw/ --enable-static --disable-shared --disable-strict --disable-threads
and not
b) ./configure --prefix=/mingw/ --disable-strict --disable-threads
The a) configure command generates a boost_regex-mt.lib of around 3.5MB.
I use the b) command first, but that gives me a
boost_regex-mt.lib of about 2MB, and got compilation errors with the
freeling library about icu methods not found, for example
u_tolower_42.
From: soloninguno@hotmail.com
To: boost-users@lists.boost.org
Subject: Boost + ICU in Windows with MinGW
Date: Mon, 28 Feb 2011 15:42:32 -0300
Hi mates,
I have a question about boost compiled with icu support for using it in another library (freeling). All this work is in windows using mingw32, the icu 4.2.1 library and boost 1_40.
I compile boost with the following bjam line
$ bjam toolset=gcc variant=release threading=multi threadapi=win32 link=shared runtime-link=shared --prefix=$PREFIX --user-config=tools/build/v2/user-config.jam -j 2 --with-filesystem --with-program_options --with-regex define=U_STATIC_IMPLEMENTATION=1 -sHAVE_ICU=1 -sNO_BZIP2=1 -sNO_ZLIB=1 --layout=tagged -a --build-type=complete stage
I applied the following patch before compilation, without it I don't get the boost_regex-mt.lib and boost_regex_mt.dll, but the libboost_regex-mt.lib.
https://build.opensuse.org/package/view_file?file=boost-regexdll.patch&package=mingw32-boost&project=windows%3Amingw%3Awin32&srcmd5=561592621be0390a05766ba9ae4d390a
This compilation works great, and also the compilation of the freeling library, which generates an exe. But after that, If I try to run the generated exe (with the boost dlls ) I get this error
terminate called after throwing an instance of 'boost::exception_detail::clone_impl
participants (1)
-
Jose Mondefo