logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Javier Leyba <xavierle...@yahoo.com.ar>
Subject Linking problem
Date Wed, 04 May 2005 10:44:35 GMT

Hi

I´m a little bit new with C++ and totally new with
log4cxx.

I'm using VC++ 6. I compiled a log4cxx static library
and the I tried to compile one of the examples that I
saw in doc page.

But at link time I got the message:


MyPrueba.obj : error LNK2001: unresolved external
symbol "__declspec(dllimport) public: void __thiscall
log4cxx::Logger::forcedLog(class
log4cxx::helpers::ObjectPtrT<class log4cxx::Level>
const &,class std::basic_string<char,struct
std::char_traits<
char>,class std::allocator<char> > const &,char const
*,int)"
(__imp_?forcedLog@Logger@log4cxx@@QAEXABV?$ObjectPtrT@VLevel@log4cxx@@@helpers@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PBDH@Z)
MyPrueba.obj : error LNK2001: unresolved external
symbol "__declspec(dllimport) public: static class
log4cxx::helpers::ObjectPtrT<class log4cxx::Level>
const  log4cxx::Level::INFO"
(__imp_?INFO@Level@log4cxx@@2V?$ObjectPtrT@VLevel@log4cxx@@@helpers@
2@B)
MyPrueba.obj : error LNK2001: unresolved external
symbol "__declspec(dllimport) public: bool __thiscall
log4cxx::Logger::isInfoEnabled(void)const "
(__imp_?isInfoEnabled@Logger@log4cxx@@QBE_NXZ)
MyPrueba.obj : error LNK2001: unresolved external
symbol "__declspec(dllimport) public: static void
__cdecl log4cxx::PropertyConfigurator::configure(class
std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >
const &)" (_
_imp_?configure@PropertyConfigurator@log4cxx@@SAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
MyPrueba.obj : error LNK2001: unresolved external
symbol "__declspec(dllimport) public: static class
log4cxx::helpers::ObjectPtrT<class log4cxx::Logger> 
__cdecl log4cxx::Logger::getLogger(class
std::basic_string<char,struct std::char_traits<char>,c
lass std::allocator<char> > const &)"
(__imp_?getLogger@Logger@log4cxx@@SA?AV?$ObjectPtrT@VLogger@log4cxx@@@helpers@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
Debug/prueba.exe : fatal error LNK1120: 5 unresolved
externals
Error executing link.exe.

Could somebody tell me what I did wrong ?

Thanks in advance

J


__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar

Mime
View raw message