I successfully compiled log4cpp for Visual Studio 2005 (Debug-mode).
And created a test console application. It links and compiled successfully.
But when I start it in debug-mode, it throws an error:
Unhandled exception at 0x772febc3 in Log4CppClient.exe: 0xC0000005:
Access violation writing location 0x00000014.
This is the content of the output window in Visual Studio:
'Log4CppClient.exe': Loaded 'D:\MyLog4Cpp\Debug\Log4CppClient.exe', Symbols loaded.
'Log4CppClient.exe': Loaded 'C:\Windows\System32\ntdll.dll', No symbols loaded.
'Log4CppClient.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', No symbols loaded.
'Log4CppClient.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', No symbols loaded.
'Log4CppClient.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.42_none_ef74ff32550b5bf0\msvcp80d.dll', Symbols loaded.
'Log4CppClient.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.42_none_ef74ff32550b5bf0\msvcr80d.dll', Symbols loaded.
'Log4CppClient.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', No symbols loaded.
First-chance exception at 0x772febc3 in Log4CppClient.exe: 0xC0000005: Access violation writing location 0x00000014. Unhandled exception at 0x772febc3 in Log4CppClient.exe: 0xC0000005: Access violation writing location 0x00000014.
Edit: Here is the project: https://github.com/LinArcX/MyLog4Cpp