Support Requests item #3571003, was opened at 2012-09-23 06:07
Message generated for change (Comment added) made by
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=429074&aid=3571003&group_id=40830
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: v1.0.4
Status: Open
Priority: 5
Private: Yes
Submitted By: https://www.google.com/accounts ()
Assigned to: Václav Zeman (wilx)
Summary: log4cplus and lnk2001 errors
Initial Comment:
Hi,
I am trying to use log4cplus in a larger project. I need to use the static version of log4cplus under windows using visual studio 2008. I have already added the lib path, the lib itself and the include directory to my project. After adding the "#include" line in my source file I thought I would be able to use log4cplus, but that isn't the case. I am ending up with lnk2001 (__declspec) errors which say that even the ctors can't be found. I have been looking through the unicode options of my project as well - with no success. I also tried different versions of log4cplus ...
What am I doing wrong?
----------------------------------------------------------------------
>Comment By: https://www.google.com/accounts ()
Date: 2012-09-23 08:56
Message:
Hi,
I have tried log4cplusS.lib, log4cplusSD.lib and log4cplusUSD.lib.
I have also tried to set the lib and the project to unicode by using the
project properties in visual studio.
Still no success.
I also thought about mixing release and debug builds up - but that wasn't
the case.
Thank you for your reply.
----------------------------------------------------------------------
Comment By: Václav Zeman (wilx)
Date: 2012-09-23 06:42
Message:
Typically, problems like this are caused by mix of log4cplus compiled with
-DUNICODE and application compiled without it or vice versa. What
lig4cplus.lib variant are you linking to your application? Is your
application compiled for multi-byte character set or for Unicode?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=429074&aid=3571003&group_id=40830
|