logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabijan...@nucorsteel.com
Subject RE: log4cxxs.lib
Date Wed, 04 Aug 2004 21:27:38 GMT
Chris,

did you 'rebuild all' (or clean/build)?





"Combes, Chris M." <chris.combes@ngc.com> 
08/04/2004 02:12 PM
Please respond to
"Log4CXX User" <log4cxx-user@logging.apache.org>


To

'Log4CXX User' <log4cxx-user@logging.apache.org>
cc





Subject
RE: log4cxxs.lib






I found a message in the archive which said to use the following for a 
static build:

- Set the LOG4CXX_STATIC definition in the Preprocessor Definitions
- Set the library dependency to "log4cxxs.lib"

I added the above, but now I get the output shown below during the link 
step.

Also, when I build log4cxx in MSVC++ 6.0 I get around 10640 warnings about 
"symbols defined already"
during the link stage. Any ideas?

Thanks,
Chris

--------------------Configuration: trivial - Win32 
Release--------------------
Linking...
log4cxxs.lib(loggingevent.obj) : error LNK2005: "public: static class 
log4cxx::helpers::Class const & __cdecl 
log4cxx::spi::LoggingEvent::getStaticClass(void)" 
(?getStaticClass@LoggingEvent@spi@log4cxx@@SAABVClass@helpers@3@XZ) 
already defined in lo
g4cxxs.lib(log4cxx.dll)
log4cxxs.lib(loggingevent.obj) : error LNK2005: "public: __thiscall 
log4cxx::spi::LoggingEvent::LoggingEvent(void)" 
(??0LoggingEvent@spi@log4cxx@@QAE@XZ) already defined in 
log4cxxs.lib(log4cxx.dll)
libcpmt.lib(xlock.obj) : error LNK2005: "public: __thiscall 
std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in 
libcp.lib(locale.obj)
log4cxxs.lib(loggingevent.obj) : warning LNK4006: "public: static class 
log4cxx::helpers::Class const & __cdecl 
log4cxx::spi::LoggingEvent::getStaticClass(void)" 
(?getStaticClass@LoggingEvent@spi@log4cxx@@SAABVClass@helpers@3@XZ) 
already defined in 
log4cxxs.lib(log4cxx.dll); second definition ignored
log4cxxs.lib(loggingevent.obj) : warning LNK4006: "public: __thiscall 
log4cxx::spi::LoggingEvent::LoggingEvent(void)" 
(??0LoggingEvent@spi@log4cxx@@QAE@XZ) already defined in 
log4cxxs.lib(log4cxx.dll); second definition ignored
libcpmt.lib(xlock.obj) : warning LNK4006: "public: __thiscall 
std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in 
libcp.lib(locale.obj); second definition ignored
   Creating library Release/trivial.lib and object Release/trivial.exp
Release/trivial.exe : fatal error LNK1169: one or more multiply defined 
symbols found
Error executing link.exe.

trivial.exe - 4 error(s), 3 warning(s)

-----Original Message-----
From: Combes, Chris M. [mailto:chris.combes@ngc.com]
Sent: Wednesday, August 04, 2004 12:24 PM
To: 'log4cxx-user@logging.apache.org'
Subject: log4cxxs.lib


Is log4cxxs.lib a "static" library?

For some reason, trivial.exe is still dependent on log4cxx.dll. Also, 
log4cxx.dll is mentioned throughout log4cxxs.lib.

Any help appreciated.
Chris



Mime
View raw message