|
Boost : |
From: Neal Becker (ndbecker2_at_[hidden])
Date: 2005-05-10 10:41:27
Caleb Epstein wrote:
> On 5/10/05, Neal Becker <ndbecker2_at_[hidden]> wrote:
>
>> I am looking at boost log library 1.3. I tried to compile "simple"
>> example with gcc-3.4.3 (linux), here's what happens:
>>
>> g++ -o main main.cpp -I ../../../../
>> In file included from ../../../../boost/log/detail/ts.hpp:37,
>> from ../../../../boost/log/log_fwd.hpp:34,
>> from ../../../../boost/log/log.hpp:36,
>> from ../../../../boost/log/log_impl.hpp:33,
>> from main.cpp:4:
>> ../../../../boost/log/detail/ts_posix.hpp: In constructor
>> `boost::logging::threading::mutex::mutex()':
>> ../../../../boost/log/detail/ts_posix.hpp:54: error: no matching function
>> for call to `pthread_mutex_t::._10(int)'
>
> The fix is to remove the member initializer for m_mutex in
> ts_posix.hpp on line 54.
>
Thanks. Still leave another problem though:
../../../../boost/log/log.hpp:277: error: declaration of âbool
boost::logging::logger_keeper_is_enabled<is_compile_time,
is_enabled>::is_enabled(boost::logging::logger&) constâ
../../../../boost/log/log.hpp:276: error: shadows template parm âbool
is_enabledâ
../../../../boost/log/log.hpp:277: error: declaration of âbool
boost::logging::logger_keeper_is_enabled<is_compile_time,
is_enabled>::is_enabled(boost::logging::logger&) constâ
../../../../boost/log/log.hpp:276: error: shadows template parm âbool
is_enabledâ
I also checked this is still an error with gcc-4.0
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk