Boost logo

Boost :

From: Wilka (wilka_at_[hidden])
Date: 2001-12-02 15:07:14


I've having problems building the library in MSVC6

I've added all the files in "\btl\libs\test\src" to my project, and
added "btl" to my include path, so things like "#include
<boost/test/execution_monitor.hpp>" work. But when I try to build it, I
get 68 errors. This is for a lib file, but I get the same problems with
a standard .exe project.

I'm probably missing something out when trying to build it, but I
couldn't find anything in the docs that I'd missed.

Here's the build output:

test_main.cpp
test_main.cpp(67): error C2653: 'unit_test_log': is not a class or
namespace name
test_main.cpp(67): error C2065: 'instance': undeclared identifier
test_main.cpp(67): error C2228: left of
'.set_log_threshold_level_by_name' must have class/struct/union type
test_main.cpp(82): error C2653: 'unit_test_log': is not a class or
namespace name
test_main.cpp(82): error C2228: left of
'.set_log_threshold_level_by_name' must have class/struct/union type
test_tools.cpp
test_tools.cpp(34): error C2653: 'wrapstrstream': is not a class or
namespace name
test_tools.cpp(35): error C2270: 'str': modifiers not allowed on
nonmember functions
test_tools.cpp(36): error C2065: 'buf': undeclared identifier
test_tools.cpp(36): warning C4552: '<<': operator has no effect;
expected operator with side-effect
test_tools.cpp(37): error C2228: left of '.str' must have
class/struct/union type
test_tools.cpp(38): error C2228: left of '.freeze' must have
class/struct/union type
test_tools.cpp(50): error C2065: 'wrapstrstream': undeclared identifier
test_tools.cpp(50): error C2143: syntax error : missing ')' before
'const'
test_tools.cpp(50): error C2182: 'checkpoint_impl': illegal use of type
'void'
test_tools.cpp(50): error C2059: syntax error : ')'
test_tools.cpp(51): error C2143: syntax error : missing ';' before '{'
test_tools.cpp(51): error C2447: missing function header (old-style
formal list?)
test_tools.cpp(60): error C2143: syntax error : missing ')' before
'const'
test_tools.cpp(60): error C2182: 'message_impl': illegal use of type
'void'
test_tools.cpp(60): error C2059: syntax error : ')'
test_tools.cpp(61): error C2143: syntax error : missing ';' before '{'
test_tools.cpp(61): error C2447: missing function header (old-style
formal list?)
test_tools.cpp(70): error C2061: syntax error : identifier
'wrapstrstream'
test_tools.cpp(74): error C2065: 'BOOST_UT_LOG_BEGIN': undeclared
identifier
test_tools.cpp(74): error C2065: 'file_name': undeclared identifier
test_tools.cpp(74): error C2065: 'line_num': undeclared identifier
test_tools.cpp(74): error C2065: 'report_warnings': undeclared
identifier
test_tools.cpp(75): error C2065: 'add_fail_pass': undeclared identifier
test_tools.cpp(75): error C2065: 'message': undeclared identifier
test_tools.cpp(75): error C2228: left of '.str' must have
class/struct/union type
test_tools.cpp(77): error C2146: syntax error : missing ';' before
identifier 'BOOST_UT_LOG_END'
test_tools.cpp(77): error C2065: 'BOOST_UT_LOG_END': undeclared
identifier
test_tools.cpp(77): error C2143: syntax error : missing ';' before '}'
test_tools.cpp(79): error C2065: 'report_successful_tests': undeclared
identifier
test_tools.cpp(80): error C2143: syntax error : missing ';' before
'string'
test_tools.cpp(80): error C2228: left of '.str' must have
class/struct/union type
test_tools.cpp(82): error C2146: syntax error : missing ';' before
identifier 'BOOST_UT_LOG_END'
test_tools.cpp(82): error C2143: syntax error : missing ';' before '}'
test_tools.cpp(88): error C2061: syntax error : identifier
'wrapstrstream'
test_tools.cpp(95): error C2065: 'loglevel': undeclared identifier
test_tools.cpp(96): error C2228: left of '.str' must have
class/struct/union type
test_tools.cpp(99): error C2146: syntax error : missing ';' before
identifier 'BOOST_UT_LOG_END'
test_tools.cpp(99): error C2143: syntax error : missing ';' before
'return'
test_tools.cpp(105): error C2228: left of '.str' must have
class/struct/union type
test_tools.cpp(108): error C2146: syntax error : missing ';' before
identifier 'BOOST_UT_LOG_END'
test_tools.cpp(108): error C2143: syntax error : missing ';' before
'return'
test_tools.cpp(115): error C2061: syntax error : identifier
'wrapstrstream'
test_tools.cpp(120): error C2065: 'test_tool_failed': undeclared
identifier
test_tools.cpp(127): error C2061: syntax error : identifier
'wrapstrstream'
test_tools.cpp(135): error C2297: '<<': illegal, right operand has type
'char [6]'
test_tools.cpp(135): error C2228: left of '.str' must have
class/struct/union type
test_tools.cpp(158): error C2653: 'output_test_stream': is not a class
or namespace name
test_tools.cpp(160): error C2065: 'pcount': undeclared identifier
test_tools.cpp(163): error C2065: 'flush': undeclared identifier
test_tools.cpp(171): error C2653: 'output_test_stream': is not a class
or namespace name
test_tools.cpp(184): error C2653: 'output_test_stream': is not a class
or namespace name
test_tools.cpp(199): error C2653: 'output_test_stream': is not a class
or namespace name
test_tools.cpp(214): error C2653: 'output_test_stream': is not a class
or namespace name
test_tools.cpp(215): error C2065: 'seekp': undeclared identifier
test_tools.cpp(220): error C2653: 'output_test_stream': is not a class
or namespace name
test_tools.cpp(221): error C2079: 'Impl' uses undefined struct
'output_test_stream'
test_tools.cpp(221): error C2239: unexpected token '{' following
declaration of 'Impl'
test_tools.cpp(228): error C2027: use of undefined type
'output_test_stream'
        test_tools.cpp(221): see declaration of 'output_test_stream'
test_tools.cpp(229): error C2061: syntax error : identifier 'Impl'
test_tools.cpp(296): fatal error C1004: unexpected end of file found
unit_test_monitor.cpp
unit_test_monitor.cpp(65): error C2653: 'test_toolbox': is not a class
or namespace name
unit_test_monitor.cpp(65): error C2061: syntax error : identifier
'test_tool_failed'
unit_test_monitor.cpp(65): error C2310: catch handlers must specify one
type
unit_test_monitor.cpp(69): error C2317: 'try' block starting on line
'62' has no catch handlers
Generating Code...
Error executing cl.exe.

BTL.lib - 68 error(s), 1 warning(s)
Build Time 0:10.0


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