Boost logo

Boost Users :

Subject: Re: [Boost-users] why aren't I getting multithreaded versions of the libraries that need to be built?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-08-29 15:33:29


AMDG

On 08/29/2011 11:34 AM, Ted Byers wrote:
> Thanks Steve,
>
> Alas, no joy. I followed your direction, and saw b2 building or revising a
> few targets, but the result of make in QuantLib's directory (version 1.1
> with boost 1.47.0 ), is:
>
> libtool: link: g++ -g -O2 -o .libs/quantlib-test-suite.exe
> <snip>
> -lboost_unit_test_framework-mt ./.libs/libUnitMain.a
> ../ql/.libs/libQuantLib.a /usr/lib/gcc/i686-pc-cygwin/4.3.4/libstdc++.dll.a
> -L/usr/lib/gcc/i686-pc-cygwin/4.3.4
> ./.libs/libUnitMain.a(libUnitMain_la-main.o): In function `main':
> /home/Ted/QuantLib-1.1/test-suite/main.cpp:11: undefined reference to
> `boost::unit_test::unit_test_main(bool (*)(), int, char**)'
> ./.libs/libUnitMain.a(libUnitMain_la-main.o): In function
> `_Z13init_functionv':
> /home/Ted/QuantLib-1.1/test-suite/main.cpp:7: undefined reference to
> `boost::unit_test::framework::master_test_suite()'
> collect2: ld returned 1 exit status
> make[1]: *** [quantlib-test-suite.exe] Error 1
> make[1]: Leaving directory `/home/Ted/QuantLib-1.1/test-suite'
> make: *** [all-recursive] Error 1
>
> It is looking for a file ' libboost_unit_test_framework-mt.a', which still
> does not exist.

That's not what the error message says.
-lboost_unit_test_framework-mt needs to
come after ./.libs/libUnitMain.a.

> I assume ' boost::unit_test::framework::master_test_suite'
> is in that library. The boost documentation I looked at indicates I ought
> to see libraries ending in '-mt' if the library supports multithreading.
>
> What else ought I try?
>

In Christ,
Steven Watanabe




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