Hi All,

I am using log4cxx and stlport 5.1.4. I have my project configured in Visual
Studio 2005. But when I try to build my project, I am encountering the
following linker errors.

Error    1    error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall log4cxx::Logger::forcedLog(class
log4cxx::helpers::ObjectPtrT<class log4cxx::Level> const &,class
stlp_std::basic_string<char,class stlp_std::char_traits<char>,class
stlp_std::allocator<char> > const &,class log4cxx::spi::LocationInfo const
&)" (__imp_?forcedLog@ [EMAIL PROTECTED]@@[EMAIL PROTECTED]@log4cxx@@@
[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]
@2@@stlp_std@@[EMAIL PROTECTED]@2@@Z) referenced in function "public:
virtual void __thiscall Log4CXXLog::debug(char const *)"
([EMAIL PROTECTED]@@ [EMAIL PROTECTED])    Log4CXXLog.obj
Error    2    error LNK2019: unresolved external symbol
"__declspec(dllimport) public: class stlp_std::basic_string<char,class
stlp_std::char_traits<char>,class stlp_std::allocator<char> > const &
__thiscall log4cxx::helpers::MessageBuffer::str(class
log4cxx::helpers::CharMessageBuffer &)" (__imp_?str@ [EMAIL PROTECTED]
@log4cxx@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]
@2@@stlp_std@@[EMAIL PROTECTED]@@Z) referenced in function "public:
virtual void __thiscall Log4CXXLog::debug(char const *)"
([EMAIL PROTECTED]@@ [EMAIL PROTECTED])    Log4CXXLog.obj
Error    3    error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall log4cxx::File::File(class
stlp_std::basic_string<char,class stlp_std::char_traits<char>,class
stlp_std::allocator<char> > const &)" ([EMAIL PROTECTED]@@ [EMAIL PROTECTED]
[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@stlp_std@@@Z)
referenced in function _wmain    Test.obj


And *Curt Arnold *has pointed to me that I have compiled log4cxx with
default vc stl library.

But my client code uses stlport template library.

Does anybody suggest me how to get rid of the errors and compile against
stlport ?


thx,
srinivas

Reply via email to