|
Boost : |
Subject: Re: [boost] [log] Release Candidate 4 released
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2010-01-31 16:38:53
----- Original Message -----
From: "Andrey Semashev" <andrey.semashev_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Sunday, January 31, 2010 9:35 PM
Subject: Re: [boost] [log] Release Candidate 4 released
>
> On 01/31/2010 10:03 PM, vicente.botet wrote:
>>
>> if I build with threading=single there are a lot of errors. So maybe
>> you could include different files in the library depending on this
>> feature and execute only the tests that could be run.
>
> What build errors do you get? BTW, if you get errors in compiling
> examples for single-threaded environment, that's expected.
I guess you mean examples for multi-threaded environment. When I request to test the library for a single-thread environement, I expect the library compiles and run tests that have a sense only on single-threaded environement. I don't know if you can make explicit which tests must be run when threading=single and when threading=multi with bjam, but IMHO this should be a must.
Best,
Vicente
gcc.compile.c++ ..\..\..\bin.v2\libs\log\example\advanced_usage\gcc-mingw-4.4.0\debug\main.o
..\example\advanced_usage\main.cpp: In function 'int main(int, char**)':
..\example\advanced_usage\main.cpp:98: error: expected initializer before '<' token
..\example\advanced_usage\main.cpp:99: error: 'text_sink' was not declared in this scope
..\example\advanced_usage\main.cpp:99: error: template argument 1 is invalid
..\example\advanced_usage\main.cpp:99: error: invalid type in declaration before '(' token
..\example\advanced_usage\main.cpp:99: error: expected type-specifier before 'text_sink'
..\example\advanced_usage\main.cpp:99: error: expected ')' before 'text_sink'
..\example\advanced_usage\main.cpp:99: error: invalid conversion from 'int*' to 'int'
..\example\advanced_usage\main.cpp:113: error: 'text_sink' is not a class or namespace
..\example\advanced_usage\main.cpp:113: error: expected ';' before 'pBackend'
..\example\advanced_usage\main.cpp:120: error: 'pBackend' was not declared in this scope
..\example\advanced_usage\main.cpp:129: error: no matching function for call to 'boost::log_st::basic_core<char>::add_sink(int&)'
..\..\../boost/log/core/core.hpp:147: note: candidates are: void boost::log_st::basic_core< <template-parameter-1-1> >::add_sink(const boost::shared_ptr<boost::log_st::sinks::sink<CharT> >&) [with CharT = char]
..\example\advanced_usage\main.cpp:143: error: base operand of '->' is not a pointer
..\example\advanced_usage\main.cpp:254: error: base operand of '->' is not a pointer
..\example\advanced_usage\main.cpp:295: error: base operand of '->' is not a pointer
gcc.compile.c++ ..\..\..\bin.v2\libs\log\example\async_log\gcc-mingw-4.4.0\debug\main.o
..\example\async_log\main.cpp:55: error: 'logger_mt' in namespace 'src' does not name a type
..\example\async_log\main.cpp:55: error: 'logger_type' does not name a type
..\example\async_log\main.cpp:55: error: ISO C++ forbids declaration of 'logger_type' with no type
..\example\async_log\main.cpp:55: error: 'logger_type' declared as an 'inline' field
..\example\async_log\main.cpp:55: error: expected ';' before '&' token
..\example\async_log\main.cpp:55: error: expected ';' before '}' token
..\example\async_log\main.cpp:55: error: expected initializer before '&' token
..\example\async_log\main.cpp:55: error: 'logger_type' in class 'test_lg' does not name a type
..\example\async_log\main.cpp: In function 'void thread_fun(boost::barrier&)':
..\example\async_log\main.cpp:69: error: 'get_test_lg' was not declared in this scope
..\example\async_log\main.cpp:69: error: invalid type in declaration before '=' token
..\example\async_log\main.cpp:69: error: request for member 'reset' in '_boost_log_record_69', which is of non-class type 'int'
..\example\async_log\main.cpp: In function 'int main(int, char**)':
..\example\async_log\main.cpp:84: error: expected initializer before '<' token
..\example\async_log\main.cpp:85: error: 'sink_t' was not declared in this scope
..\example\async_log\main.cpp:85: error: template argument 1 is invalid
..\example\async_log\main.cpp:85: error: invalid type in declaration before '(' token
..\example\async_log\main.cpp:85: error: expected type-specifier before 'sink_t'
..\example\async_log\main.cpp:85: error: expected ')' before 'sink_t'
..\example\async_log\main.cpp:88: error: invalid conversion from 'int*' to 'int'
..\example\async_log\main.cpp:90: error: base operand of '->' is not a pointer
..\example\async_log\main.cpp:92: error: base operand of '->' is not a pointer
..\example\async_log\main.cpp:101: error: no matching function for call to 'boost::log_st::basic_core<char>::add_sink(int&)'
..\..\../boost/log/core/core.hpp:147: note: candidates are: void boost::log_st::basic_core< <template-parameter-1-1> >::add_sink(const boost::shared_ptr<boost::log_st::sinks::sink<CharT> >&) [with CharT = char]
..\example\async_log\main.cpp:119: error: base operand of '->' is not a pointer
..\example\async_log\main.cpp:120: error: base operand of '->' is not a pointer
gcc.compile.c++ ..\..\..\bin.v2\libs\log\example\event_log\gcc-mingw-4.4.0\debug\main.o
In file included from ..\example\event_log\main.cpp:35:
..\..\../boost/log/sinks/sync_frontend.hpp:35:2: error: #error Boost.Log: Synchronous sink frontend is only supported in multithreaded environment
and up to 108 errors
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk