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-dll-in-a-visual-studio-2012-c-project

Any luck?
Alex

---------- Forwarded message ----------
From: Luca Gherardi <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" <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!



------------------------------------------------------------------------------

Luca Gherardi, PhD
Postdoc at ETH Zurich
Institute for Dynamic Systems and Control
Room ML K 34
Sonneggstrasse 3 - 8092 Zurich
SWITZERLAND

Office: +41 44 632 73 55
Mobile: +41 788 833 174
Home: www.lucagherardi.it

Reply via email to