I
rebuilt all, several times.
Chris,
did you 'rebuild
all' (or clean/build)?
| "Combes, Chris M."
<[EMAIL PROTECTED]>
08/04/2004 02:12 PM
|
|
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)"
([EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@[EMAIL PROTECTED]) already
defined in lo
g4cxxs.lib(log4cxx.dll)
log4cxxs.lib(loggingevent.obj) :
error LNK2005: "public: __thiscall
log4cxx::spi::LoggingEvent::LoggingEvent(void)"
([EMAIL PROTECTED]@log4cxx@@[EMAIL PROTECTED]) already defined in
log4cxxs.lib(log4cxx.dll)
libcpmt.lib(xlock.obj) : error LNK2005: "public:
__thiscall std::_Lockit::~_Lockit(void)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) 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)"
([EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@[EMAIL PROTECTED]) already
defined in
log4cxxs.lib(log4cxx.dll); second definition ignored
log4cxxs.lib(loggingevent.obj) : warning
LNK4006: "public: __thiscall log4cxx::spi::LoggingEvent::LoggingEvent(void)"
([EMAIL PROTECTED]@log4cxx@@[EMAIL PROTECTED]) already defined in
log4cxxs.lib(log4cxx.dll); second definition ignored
libcpmt.lib(xlock.obj)
: warning LNK4006: "public: __thiscall std::_Lockit::~_Lockit(void)"
([EMAIL PROTECTED]@@[EMAIL PROTECTED]) 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:[EMAIL PROTECTED]
Sent: Wednesday, August 04, 2004
12:24 PM
To: '[email protected]'
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