Boost logo

Boost Users :

From: John Torjo (john.groups_at_[hidden])
Date: 2008-01-18 05:27:18


Hi,

Sorry 'bout that - I just made a change. It should work fine now.

Best,
John
> Hi,
>
> I did try the boost.logging lib from svn
> http://svn.boost.org/svn/boost/sandbox/logging/ and got with the starter
> example the compiler errors:
>
> $ LANG=en g++ -Iboost/logging
> -Iboost/logging/lib/logging/samples/starter/
> boost/logging/lib/logging/samples/starter/log.cpp -o
> log
> In file included from boost/logging/lib/logging/samples/starter/log.cpp:2:
> boost/logging/lib/logging/samples/starter/log.h:47: error: 'g_l'
> declared as function returning a function
> boost/logging/lib/logging/samples/starter/log.cpp: In function
> 'boost::logging::log_holder<boost::logging::logger_format_write<boost::logging::default_,
> boost::logging::default_, boost::logging::writer::threading::ts_write,
> boost::logging::default_,
> boost::logging::scenario::usage::detail_find_logger::find_logger<boost::logging::scenario::usage::logger_::favor::correctness,
> boost::logging::scenario::usage::logger_::change::often<10>,
> boost::logging::default_>::lock_resource<10> >,
> boost::logging::default_, boost::logging::override>& g_l()':
> boost/logging/lib/logging/samples/starter/log.cpp:14: error: new
> declaration
> 'boost::logging::log_holder<boost::logging::logger_format_write<boost::logging::default_,
> boost::logging::default_, boost::logging::writer::threading::ts_write,
> boost::logging::default_,
> boost::logging::scenario::usage::detail_find_logger::find_logger<boost::logging::scenario::usage::logger_::favor::correctness,
> boost::logging::scenario::usage::logger_::change::often<10>,
> boost::logging::default_>::lock_resource<10> >,
> boost::logging::default_, boost::logging::override>& g_l()'
> boost/logging/lib/logging/samples/starter/log.h:47: error: ambiguates
> old declaration 'int g_l()'
> boost/logging/lib/logging/samples/starter/log.cpp: At global scope:
> boost/logging/lib/logging/samples/starter/log.cpp:14: error: no matching
> function for call to
> 'boost::logging::ensure_early_log_creation::ensure_early_log_creation(int)'
> boost/logging/boost/logging/detail/log_keeper.hpp:86: note: candidates
> are:
> boost::logging::ensure_early_log_creation::ensure_early_log_creation(type&)
> [with type = int]
> boost/logging/boost/logging/detail/log_keeper.hpp:85: note:
>
> boost::logging::ensure_early_log_creation::ensure_early_log_creation(const
> boost::logging::ensure_early_log_creation&)
> boost/logging/lib/logging/samples/starter/log.cpp: In function 'void
> init_logs()':
> boost/logging/lib/logging/samples/starter/log.cpp:20: error: base
> operand of '->' is not a pointer
> boost/logging/lib/logging/samples/starter/log.cpp:21: error: base
> operand of '->' is not a pointer
> boost/logging/lib/logging/samples/starter/log.cpp:22: error: base
> operand of '->' is not a pointer
> boost/logging/lib/logging/samples/starter/log.cpp:23: error: base
> operand of '->' is not a pointer
> boost/logging/lib/logging/samples/starter/log.cpp:26: error: base
> operand of '->' is not a pointer
> boost/logging/lib/logging/samples/starter/log.cpp:27: error: base
> operand of '->' is not a pointer
> boost/logging/lib/logging/samples/starter/log.cpp:28: error: base
> operand of '->' is not a pointer
>
> On other examples I've got linker errors. Does exist some decencies?
>
> Thanks,
> Olaf
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>

-- 
http://John.Torjo.com -- C++ expert
... call me only if you want things done right

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net