Boost logo

Boost :

From: Paul A Bristow (pbristow_at_[hidden])
Date: 2005-08-17 12:32:32


Boost 1.33.0 Unit_test_example1 is OK in debug thus:

------ Rebuild All started: Project: unit_test_framework, Configuration:
Debug Win32 ------
Deleting intermediate and output files for project 'unit_test_framework',
configuration 'Debug|Win32'
Compiling...
xml_report_formatter.cpp
xml_log_formatter.cpp
unit_test_suite.cpp
unit_test_parameters.cpp
unit_test_monitor.cpp
unit_test_main.cpp
unit_test_log.cpp
test_tools.cpp
results_reporter.cpp
results_collector.cpp
progress_monitor.cpp
plain_report_formatter.cpp
framework.cpp
i:\boost_1_33_0\boost\test\impl\framework.ipp(313) : warning C4244:
'initializing' : conversion from 'time_t' to 'unsigned int', possible loss
of data
execution_monitor.cpp
compiler_log_formatter.cpp
Generating Code...
i:\boost_1_33_0\boost\lexical_cast.hpp(223) : warning C4701: potentially
uninitialized local variable 'result' used
Creating library...
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 8.00.50215
Copyright (C) Microsoft Corporation. All rights reserved.
Build log was saved at
"file://c:\temp\boost_test_library\Debug\BuildLog.htm"
unit_test_framework - 0 error(s), 2 warning(s)
------ Rebuild All started: Project: unit_test_example1, Configuration:
Debug Win32 ------
Deleting intermediate and output files for project 'unit_test_example1',
configuration 'Debug|Win32'
Compiling...
unit_test_example1.cpp
Compiling manifest to resources...
Linking...
LINK : .\Debug/unit_test_example1.exe not found or not built by the last
incremental link; performing full link
unit_test_framework.lib(compiler_log_formatter.obj) : warning LNK4099: PDB
'vc80.pdb' was not found with 'Debug\unit_test_framework.lib' or at
'i:\boost_1_33_0\libs\test\build\msvc71_proj\Debug\vc80.pdb'; linking object
as if no debug info
... many similar - needs to avoid incremental liking????

Embedding manifest...
Build log was saved at
"file://c:\temp\boost_test_library\Debug\BuildLog.htm"
unit_test_example1 - 0 error(s), 15 warning(s)
========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========

and runs as expected

Running 1 test case...
i:/boost_1_33_0/libs/test/example/unit_test_example1.cpp(17): error in
"free_tes
t_function": check 2 == 1 failed
unknown location(0): fatal error in "free_test_function": memory access
violatio
n

*** 1 failure detected (1 failure expected) in test suite "Unit test example
1"
Press any key to continue . . .

BUT in release >>>>>>>>>>>>>>>>>

------ Rebuild All started: Project: unit_test_framework, Configuration:
Release Win32 ------
Deleting intermediate and output files for project 'unit_test_framework',
configuration 'Release|Win32'
Compiling...
xml_report_formatter.cpp
xml_log_formatter.cpp
unit_test_suite.cpp
unit_test_parameters.cpp
unit_test_monitor.cpp
unit_test_main.cpp
unit_test_log.cpp
test_tools.cpp
results_reporter.cpp
results_collector.cpp
progress_monitor.cpp
plain_report_formatter.cpp
framework.cpp
..\..\..\..\boost/test/impl/framework.ipp(313) : warning C4244:
'initializing' : conversion from 'time_t' to 'unsigned int', possible loss
of data
execution_monitor.cpp
..\..\..\..\boost/test/impl/execution_monitor.ipp(214) : warning C4535:
calling _set_se_translator() requires /EHa
compiler_log_formatter.cpp
Generating Code...
Creating library...
Build log was saved at
"file://i:\boost_1_33_0\libs\test\build\msvc71_proj\Release\BuildLog.htm"
unit_test_framework - 0 error(s), 2 warning(s)

So library builds OK <<<<<<<<<<<<<<<<

------ Rebuild All started: Project: unit_test_example1, Configuration:
Release Win32 ------
Deleting intermediate and output files for project 'unit_test_example1',
configuration 'Release|Win32'
Compiling...
unit_test_example1.cpp
Linking...
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)"
(??0?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAE_at_ABV01@@
Z) already defined in unit_test_example1.obj

<snip> ...

MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info &
__thiscall type_info::operator=(class type_info const &)"
(??4type_info@@AAEAAV0_at_ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other
libs; use /NODEFAULTLIB:library
.\Release/unit_test_example1.exe : fatal error LNK1169: one or more multiply
defined symbols found
Build log was saved at
"file://i:\boost_1_33_0\libs\test\build\msvc71_proj\Release\BuildLog.htm"
unit_test_example1 - 33 error(s), 1 warning(s)
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========

Suggestions?

Thanks

Paul

Paul A Bristow
Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB
+44 1539 561830 +44 7714 330204
mailto: pbristow_at_[hidden]


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk