logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sorin POPA <sorro...@yahoo.com>
Subject Re: Building and using log4cxx 0.9.8 on Visual Studio 2003...
Date Tue, 28 Nov 2006 11:38:35 GMT
Hi, Andreas!
Thanks for your looking into this matter!

The example with the working solution of log4cxx is a Console Application

It's true, as you said, we've used the VS IDE to build the projects (Visual Studio 2003):
The second example, in my first email (I've sent a second one, correcting a mistake in the
first one), was a console application. So, I've created from New Project -> win32 console
application. I cannot remove "stdafx.h".
I tried replacing, like you said, _tmain(...) with main(), but I get the same errors..

The example in the second email I've sent is part of a MFC application (New Project ->
MFC Application).
It seems that it does not depend on the type of the application.. At the end we get the same
error with unresolved symbols.

We built the log4cxx with Ant.. I don't remember exactly how we built it - what were the parameters,
the settings...

Thank  you! 


----- Original Message ----
From: Andreas Fester <afester@apache.org>
To: sorro192@yahoo.com
Cc: Log4CXX User <log4cxx-user@logging.apache.org>
Sent: Monday, November 27, 2006 11:06:54 PM
Subject: Re: Building and using log4cxx 0.9.8 on Visual Studio 2003...


I dont currently have a Windows environment available (can try tomorrow),
but I suspect that your second application is an MFC application,
which seems to use different compiler parameters when compiling
the application than when the log4cxx library was built.

In your second example, have you already tried letting away the
stdafx.h include and using int main() instead of int _tmain(int argc, _TCHAR* argv[]) ?

I also suppose that you were using the Visual Studio IDE to create your application
project, right? Can you shortly desribe the types of projects you used for each
of the two programs? (e.g. Console application / WIN32 Application / MFC etc.)


Sorin POPA wrote:
> Hello, friends!
> Mi amigos and I are trying to use log4cxx in a Visual C++ project, in Visual Studio 2003.
> We have built the library with Ant (following the indications in the INSTALL guide) and
we can use it now.
> Still we have some questions, which may find answers here.

Yahoo! Music Unlimited
Access over 1 million songs.

View raw message