Hi,

I am using the 0.10 version (dll) for log4cxx and when I am trying to
call following function:
outputLogString = log4cxx::helpers::Transcoder::decode(output);

I am getting below linker error!

Error   7       error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static class
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> > __cdecl
log4cxx::helpers::Transcoder::decode(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
([EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]
[EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]
[EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@2@@5@@Z) referenced in function 
"public: virtual
void __thiscall com::ml::mllog4cxx::jms::SOALoggerLayout::format(class
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> > &,class log4cxx::helpers::ObjectPtrT<class
log4cxx::spi::LoggingEvent> const &,class log4cxx::helpers::Pool &)const
"
([EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]
[EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]
[EMAIL PROTECTED]@log4cxx@@@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@@@Z)
soaloggerlayout.obj     
Can some one please help resolve this?

I am using this method as advised in thread
http://marc.info/?l=log4cxx-user&m=117816538114449&w=2

Also is there a way or a short tutorial / book that can explain how to
interpret these linker errors as I do get these very often. 

Also I am attaching the build.htm from Visual Studio 2005 (Pro) 
 
Please let me know if you need any additional info.
--------------------------------------------------------

This message w/attachments (message) may be privileged, confidential or 
proprietary, and if you are not an intended recipient, please notify the 
sender, do not use or share it and delete it. Unless specifically indicated, 
this message is not an offer to sell or a solicitation of any investment 
products or other financial product or service, an official confirmation of any 
transaction, or an official statement of Merrill Lynch. Subject to applicable 
law, Merrill Lynch may monitor, review and retain e-communications (EC) 
traveling through its networks/systems. The laws of the country of each 
sender/recipient may impact the handling of EC, and EC may be archived, 
supervised and produced in countries other than the country in which you are 
located. This message cannot be guaranteed to be secure or error-free. This 
message is subject to terms available at the following link: 
http://www.ml.com/e-communications_terms/. By messaging with Merrill Lynch you 
consent to the foregoing.
--------------------------------------------------------
ÿþ<html> <head> <META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-16"> </head> <body> <pre> <table width=100% bgcolor=#CFCFE5><tr> <td> <font face=arial size=+3> Build Log </font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre> <h3>Build started: Project: mllog4cxx, Configuration: Debug|Win32</h3> </pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2> Command Lines </font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Creating temporary file "c:\Working\Instrumentation\VC++_Projects\MLLog4cxx\mllog4cxx\Debug\RSP0000698202764.rsp" with contents [ /Od /D &quot;_DEBUG&quot; /D &quot;WIN32&quot; /D &quot;_WINDOWS&quot; /D &quot;_USRDLL&quot; /D &quot;_WINDLL&quot; /FD /EHsc /RTC1 /MDd /Fo&quot;Debug\\&quot; /Fd&quot;Debug\vc80.pdb&quot; /c /TP /VERBOSE /EXPORTS /SYMBOLS &quot;.\source\mllog4cxx\jms\soaloggerlayout.cpp&quot; ] Creating command line "cl.exe [EMAIL PROTECTED]"c:\Working\Instrumentation\VC++_Projects\MLLog4cxx\mllog4cxx\Debug\RSP0000698202764.rsp" /nologo /errorReport:prompt" Creating temporary file "c:\Working\Instrumentation\VC++_Projects\MLLog4cxx\mllog4cxx\Debug\RSP00006A8202764.rsp" with contents [ /OUT:&quot;C:\Working\Instrumentation\VC++_Projects\MLLog4cxx\Debug\mllog4cxx.dll&quot; /DLL /MANIFEST /MANIFESTFILE:&quot;Debug\mllog4cxx.dll.intermediate.manifest&quot; Ws2_32.lib log4cxxd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib &quot;.\Debug\mlinternallogger.obj&quot; &quot;.\Debug\mlloggerlayout.obj&quot; &quot;.\Debug\mlloggingevent.obj&quot; &quot;.\Debug\mllogginsublevel.obj&quot; &quot;.\Debug\mlmessagetype.obj&quot; &quot;.\Debug\soaloggerlayout.obj&quot; ] Creating command line "link.exe [EMAIL PROTECTED]"c:\Working\Instrumentation\VC++_Projects\MLLog4cxx\mllog4cxx\Debug\RSP00006A8202764.rsp" /NOLOGO /ERRORREPORT:PROMPT" </pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2> Output Window </font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Compiling... cl : Command line warning D9035 : option 'V' has been deprecated and will be removed in a future release cl : Command line warning D9002 : ignoring unknown option '/EXPORTS' cl : Command line warning D9002 : ignoring unknown option '/SYMBOLS' soaloggerlayout.cpp .\source\mllog4cxx\jms\soaloggerlayout.cpp(15) : warning C4273: 'com::ml::mllog4cxx::jms::SOALoggerLayout::activateOptions' : inconsistent dll linkage C:\Working\Instrumentation\VC++_Projects\MLLog4cxx\mllog4cxx\include\mllog4cxx/jms/soaloggerlayout.h(35) : see previous definition of 'activateOptions' .\source\mllog4cxx\jms\soaloggerlayout.cpp(54) : warning C4273: 'com::ml::mllog4cxx::jms::SOALoggerLayout::stripGreaterThanCharacters' : inconsistent dll linkage C:\Working\Instrumentation\VC++_Projects\MLLog4cxx\mllog4cxx\include\mllog4cxx/jms/soaloggerlayout.h(41) : see previous definition of 'stripGreaterThanCharacters' .\source\mllog4cxx\jms\soaloggerlayout.cpp(67) : warning C4273: 'com::ml::mllog4cxx::jms::SOALoggerLayout::format' : inconsistent dll linkage C:\Working\Instrumentation\VC++_Projects\MLLog4cxx\mllog4cxx\include\mllog4cxx/jms/soaloggerlayout.h(37) : see previous definition of 'format' Linking... Creating library C:\Working\Instrumentation\VC++_Projects\MLLog4cxx\Debug\mllog4cxx.lib and object C:\Working\Instrumentation\VC++_Projects\MLLog4cxx\Debug\mllog4cxx.exp soaloggerlayout.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > __cdecl log4cxx::helpers::Transcoder::decode(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" ([EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]) referenced in function "public: virtual void __thiscall com::ml::mllog4cxx::jms::SOALoggerLayout::format(class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,class log4cxx::helpers::ObjectPtrT<class log4cxx::spi::LoggingEvent> const &,class log4cxx::helpers::Pool &)const " ([EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]) C:\Working\Instrumentation\VC++_Projects\MLLog4cxx\Debug\mllog4cxx.dll : fatal error LNK1120: 1 unresolved externals </pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2> Results </font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Build log was saved at "file://c:\Working\Instrumentation\VC++_Projects\MLLog4cxx\mllog4cxx\Debug\BuildLog.htm" mllog4cxx - 2 error(s), 6 warning(s) </pre></table><table width=100% height=20 bgcolor=#CFCFE5><tr><td><font face=arial size=+2> </font></table></body></html>

Reply via email to