|
Boost : |
From: Jacek Pakulski (jacekp_at_[hidden])
Date: 2005-01-11 18:59:20
Hi;
This is my first attempt at using Boost. Thought I'd start with the unit
test lib.
I tried to make unit_test_framework1.cpp, which compiled but failed to
link, producing several errors like the one below:
C:/Boost/lib/libboost_unit_test_framework-mgw-s-1_32.lib(test_tools.obj)(.rdata$_ZTISt9exception+0x0):test_tools.cpp:
first defined here
/mingw/lib/libstdc++.a(vterminate.o)(.text$_ZTSSt9exception+0x0):
multiple definition of `typeinfo name for std::exception'
I compiled the Boost library using bjam with following options:
bjam "-sMINGW_ROOT_DIRECTORY=C:\Dev-Cpp\bin" "-sTOOLS=mingw"
"-sBUILD=release <runtime-link>static <threading>single" install
Result:
...failed updating 10 targets...
...skipped 3 targets...
...updated 3164 targets...
My cmd. to make unit_test_framework1.cpp is:
g++ -I"C:\Boost\include\boost-1_32" -L"C:\Boost\lib"
C:\Boost\lib\libboost_unit_test_framework-mgw-s-1_32.lib -o
boost_test.exe boost_test.o
Thank You for Your patience and help
Jacek
<http://www.boost.org/libs/test/example/unit_test_example1.cpp>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk