Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Problems converting std::string to LogString: msg#00031

apache.logging.log4cxx.user

Subject: Problems converting std::string to LogString

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 &)"
(__imp_?decode@Transcoder@helpers@log4cxx@@SA?AV?$basic_string@_WU?$char
_traits@_W@std@@V?$allocator@_W@2@@std@@ABV?$basic_string@DU?$char_trait
s@D@std@@V?$allocator@D@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
"
(?format@SOALoggerLayout@jms@mllog4cxx@ml@com@@UBEXAAV?$basic_string@_WU
?$char_traits@_W@std@@V?$allocator@_W@2@@std@@ABV?$ObjectPtrT@VLoggingEv
ent@spi@log4cxx@@@helpers@log4cxx@@AAVPool@9log4cxx@@@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 @"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 @"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 &)" (__imp_?decode@Transcoder@helpers@log4cxx@@SA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@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 " (?format@SOALoggerLayout@jms@mllog4cxx@ml@com@@UBEXAAV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@ABV?$ObjectPtrT@VLoggingEvent@spi@log4cxx@@@helpers@log4cxx@@AAVPool@9log4cxx@@@Z) 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>
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
db.postgresql.b...    video.ffmpeg.us...    gis.qgis.devel/...    web.rdf.redland...    file-systems.oc...    recreation.rail...    systems.archos....    python.c++/2003...    lang.c--/2005-0...    multimedia.gpho...    network.unison....    editors.jedit.u...    hardware.pciids...    cms.tiki.cvs/20...    bug-tracking.ma...    java.hadoop.hba...    ietf.rsvp/2002-...    xfree86.devel/2...    qnx.openqnx.dev...    apache.labs.dev...    tex.pdftex/2008...    os.solaris.open...    user-groups.lin...    kde.koffice/200...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation