Boost logo

Boost :

From: Paul A Bristow (pbristow_at_[hidden])
Date: 2006-01-30 10:26:50


| -----Original Message-----
| From: boost-bounces_at_[hidden]
| [mailto:boost-bounces_at_[hidden]] On Behalf Of Paul A Bristow
| Sent: 23 January 2006 18:59
| To: boost_at_[hidden]
| Subject: [boost] Boost test tools using static library -
| operator new linkproblem
| In release mode (debug to
| libboost_unit_test_framework-vc80-mt-sgd-1_34.lib
| is OK, and dll debug and release libs also OK)
| Compiling...
| test_tools_test.cpp
| Linking...
| libboost_unit_test_framework-vc80-mt-s-1_34.lib(exception_safe
| ty.obj) :
| error LNK2005: "void * __cdecl operator new[](unsigned int)"
| (??_U_at_YAPAXI@Z)
| already defined in libcpmt.lib(newaop.obj)
| I:\boost-06-01-13-0500\libs\test\build\msvc71_proj\Release\tes
| t_tools_test_s
| tatic.exe : fatal error LNK1169: one or more multiply defined
| symbols found
| Suggestions about what I am doing wrong?
| Thanks
| Paul

Thanks for your note saying you have fixed this. I'll try this out as soon
as possible.

Meanwhile it works with /FORCE.

By The Way, before we get too far into doc updates, is there a really good
reason why unit test framework and test tools are separate libraries? They
appear to be the same apart from one extra file. Would it not reduce
confusion/compile time... to just have ONE library file.

I'm still not sure I understand when to use either a test_suite
unit_unit_test_suite, or int test_main.

Boost list run by bdawes at, gregod at, cpdaniel at, john at