logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Barnholt" <Jan.Barnh...@blackbay.com>
Subject RE: Getting rid of LNK4006 / already defined warnings in VS?
Date Wed, 13 Jan 2010 23:57:18 GMT
Duh! The project for the static log4cxx.lib also had LOG4CXX_STATIC
defined!
Define removed, rebuilt, lib replaced in MyProject: warnings gone..

Cheers,
Jan



-----Original Message-----
From: David B Grigsby 
Subject: RE: Getting rid of LNK4006 / already defined warnings in VS?

This part is interesting:
	@@Z) already defined in log4cxx.lib(log4cxx.dll); second
definition

That sounds like you're linking the import lib for the dll.

Perhaps you're linking both the static lib and the implib into your
project.

If that doesn't ring a bell right away, I suppose you should grep
*everywhere* for log4cxx.lib - see how that's getting in there.  

Do you know about the #pragma( comment: link ) thing?  That allows a
link statement to be injected via a header file.  Watch out for that
too.

Dg

Mime
View raw message