boost::logging - Problem with scoped log example.

Hi guys, I've just been experimenting with boost::logging. I've got some of the examples to work but can't get scoped logging to work. The folowing code should work, according http://www.torjo.com/code/log/scoped.html 1 : #include <boost/log/log.hpp> 2 : #include <boost/log/functions.hpp> 3 : 4 : using namespace boost::logging; 5 : 6 : int main(int argc, char** argv) 7 : { 8 : logger gui("app.gui"); 9 : gui.stream() << "hey - I've done something GUIsh" << std::endl; 10: 11: return 0; 12: } However I get a compile error saying: BuildTest\Main.cpp(9): error C2676: binary '<<' : 'boost::logging::logger_stream' does not define this operator or a conversion to a type acceptable to the predefined operator Any ideas? Thanks, David
participants (1)
-
boost@david-williams.info