boost log lib 1.3 compile failure w/gcc

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)' /usr/include/bits/pthreadtypes.h:87: note: candidates are: pthread_mutex_t::._10() /usr/include/bits/pthreadtypes.h:87: note: pthread_mutex_t::._10(const pthread_mutex_t&) In file included from ../../../../boost/log/log_impl.hpp:33, from main.cpp:4: ../../../../boost/log/log.hpp: At global scope: ../../../../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' C

Caleb Epstein wrote:
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

participants (2)
-
Caleb Epstein
-
Neal Becker