You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Scott McFadden <SM...@criticaltech.com> on 2006/09/12 21:00:01 UTC
MSVC2005 Link Error in 0.9.8
My log4cxx code compiles fine but fails to link with the following
error:
Error 1 error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static class
log4cxx::helpers::ObjectPtrT<class log4cxx::Logger> __cdecl
log4cxx::Logger::getLogger(char const * const)"
(__imp_?getLogger@Logger@log4cxx@@SA?AV?$ObjectPtrT@VLogger@log4cxx@@@he
lpers@2@QBD@Z) referenced in function "void __cdecl `dynamic initializer
for 'logger''(void)" (??__Elogger@@YAXXZ) ExchangePumpGUI.obj
I have unsuccessfully tried linking against:
log4cxx\build\release\shared\log4cxx.lib
and
log4cxx\build\debug\shared\log4cxxd.lib
Anyone else had linking problems in MSVC2005?
Thanks!