Also, what version of log4cxx are you running ?
We recommend log4cxx-0.9.7 (even if outdated)

Marc Herbert a écrit :
Daniel Bartlett <[EMAIL PROTECTED]> writes:

  
CarobCommon.cpp:34: error: no matching function for call to
`log4cxx::Logger::getLogger(const char[15])'
/usr/include/log4cxx/logger.h:295: note: candidates are: static
log4cxx::LoggerPtr log4cxx::Logger::getLogger(const log4cxx::String&)
/usr/include/log4cxx/logger.h:316: note:                 static
log4cxx::LoggerPtr log4cxx::Logger::getLogger(const log4cxx::String&,
log4cxx::spi::LoggerFactoryPtr)
make[1]: *** [libmysequoia_la-CarobCommon.lo] Error 1


Anyone got any recommendations? (I think that some casting would fix the
problem but I cannot seem to work out the correct data type to use :( )
    

Interesting. Which compiler version are you using?


  
(CarobCommon.cpp:34)

Original line: LoggerPtr
CarobCommon::logger(Logger::getLogger("MySQLAPI.Carob"));
My guessed line: LoggerPtr
CarobCommon::logger(Logger::getLogger((log4cxx::String) "MySQLAPI.Carob"));
    

I would rather try something like:

CarobCommon::logger(Logger::getLogger(log4cxx::String("MySQLAPI.Carob")));


It seems String can be defined in  "include/log4cxx/helpers/tchar.h"
either as char or wchar_t, maybe this is your issue here.



_______________________________________________
Carob mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob

  
_______________________________________________
Carob mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob

Reply via email to