Re: [Log4cplus-devel] [log4cplus] Problem to build and use the library
Logging Framework for C++
Brought to you by:
wilx
From: Václav H. <v.h...@sh...> - 2009-04-02 19:56:09
|
Leonardo Straniero wrote, On 2.4.2009 18:20: > Hi Wilx, > > I want to use this good logger for my C++ application but I have some > problem. > > Is it needed to build the library? Of course you have to build the library first before you can use it. > > Can you help me to build and use the library? When I use the example > code “Hello World” I have this error: If the <http://log4cplus.sourceforge.net/hello_world.html> example is broken, take a look at tests sources instead. The site is not up to date, yet. > > > > 1>Logging.cpp > > 1>c:\documents and settings\lstraniero\my documents\visual studio > 2005\projects\mappa\mappa\logging.cpp(14) : error C2665: > 'log4cplus::Logger::getInstance' : none of the 2 overloads could convert > all the argument types > > 1> c:\documents and > settings\lstraniero\desktop\log4cplus-1.0.2\include\log4cplus\logger.h(93): Please, try the log4cplus 1.0.3 that has just been released few days ago. > could be 'log4cplus::Logger log4cplus::Logger::getInstance(const > log4cplus::tstring &)' > > 1> while trying to match the argument list '(const char [5])' > > 1>c:\documents and settings\lstraniero\my documents\visual studio > 2005\projects\mappa\mappa\logging.cpp(14) : error C2512: > 'log4cplus::Logger' : no appropriate default constructor available > > 1>Generating Code... > > 1>Build log was saved at "file://c:\Documents and Settings\lstraniero\My > Documents\Visual Studio 2005\Projects\mappa\mappa\Debug\BuildLog.htm" > > 1>mappa - 2 error(s), 0 warning(s) > > ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== > > > > Any ides? What is my problem?? L If you do not manage to make it work even then, use the log4cplus-devel@ mailing list or log4cplus support tracker intead of mailing me directly, please. - VH |