Hi,

 

Actually the solution was telling to visual studio to link not only
log4cxx.lib but also apr-1.lib, apr-utlis-1.lib and xml.lib.

I compiled all of them as static libraries.

 

Thanks for the help,

 

Luca

 

From: Alexandru Zbârcea [mailto:zbarce...@gmail.com] 
Sent: venerdì 11 ottobre 2013 20:09
To: Log4CXX User
Subject: Fwd: Linking log4cxx in Visual Studio

 

Hi,

What happens when you open the .dll with dependency tree? There is no
complain about it, right?

Are you compiling the .dll in Release/Debug mode? Try copying the .dll into
that folder.

What is the actual error? It complains when linking your project with your
.dll? Maybe this one helps:
http://stackoverflow.com/questions/13076318/how-to-reference-a-dynamic-lib-d
ll-in-a-visual-studio-2012-c-project

Any luck?

Alex

 

---------- Forwarded message ----------
From: Luca Gherardi <luca.ghera...@unibg.it <mailto:luca.ghera...@unibg.it>
>
Date: Fri, Oct 11, 2013 at 6:23 PM
Subject: Linking log4cxx in Visual Studio
To: "log4cxx-user@logging.apache.org
<mailto:log4cxx-user@logging.apache.org> " <log4cxx-user@logging.apache.org
<mailto:log4cxx-user@logging.apache.org> >



Hi all,

 

I’m including log4cxx in my app, which I’m coding in Visual Studio 2012.

 

I built log4cxx and I

-        Included the build path in Properties->VC++ Directories->Library
Directories

-        Included log4cxx.lib in Properties->Linker->Input->Additional
dependencies

 

When I compile log4cxx as a static library the compilation of my app
complain during the linking phase.

When I compile log4cxx as a dynamic library the compilation completes
without problems, but the execution complains about the fact that
log4cxx.dll is missing.

 

What’s the right configuration? Should I copy the DLL in some directory or
link it somehow?

 

Thanks!

 

 

Reply via email to