1

I have succeeded to build the log4cxx library both in debug and release mode and created log4cxxd.lib and log4cxx.lib files. But when I try to use them with static linking in my visual C++ 2010 project I get

The application failed to initialize properly (0xc0150002).

in debug mode. In release mode it just works fine. For debug configuration, I've added log4cxxd.lib as additional dependency and for release configuration I've added log4cxx.lib. I think it should also work in debug mode, but it does not.

Any ideas?

Armen Tsirunyan
  • 130,161
  • 59
  • 324
  • 434
Furkan
  • 683
  • 2
  • 10
  • 26
  • 0xc0150002 means that a dll could not be loaded. Chances are it's looking for a specific debug version of a DLL that isn't installed or available in the search path. – Captain Obvlious Jul 21 '11 at 13:23
  • You are right Chet. The problem is the version. The lib and dll files were created for a previous project with Visual Studio 2008. I tested the debug library with visual C++ 2008 and it worked... – Furkan Jul 21 '11 at 19:40

1 Answers1

0

Use the Dependency Walker on your application to determine what library is missing.

Vladimir Sinenko
  • 4,629
  • 1
  • 27
  • 39