Unable to remove log4cxx logger, got a lot of Linker unresolved External
#1

Hello to everybody.

I'd like to remove log4cxx logger but I got a lot of unresolved external linker error.

I got this error when i remove the macro definition:

#define LOG_FATAL( ... )            LOGGER_LOG_FATAL( LogSystem::getRootLogger(), __VA_ARGS__ )

The fun fact is that I don't use LOG_INFO, fatal ecc.. anymore projects.

So i can't understeand where is referenced. 

I also removed LOG4CXX_STATIC preprocessor definition but can't figure this out.

Thanks in advance.

2

#2

Did you remove the log4cxx.lib from the project settings too? Dont know what its called right now, but it specifically lists log4cxx.lib and all the other libs needed too.

It should be within the linker settings at the very top.



But why would you even remove log4cxx in the first place? You went through the hassle to remove all the log4cxx makro calls? Thats a very unnecessary thing to do.

#3

Yes I removed also lib for log4cxx, apr, apr-util and xml. (libs that log4cxx require).

I removed also logsystem.h and all includes and reference to: 

#include <log4cxx/log4cxx.h>
#include <log4cxx/logger.h>

and also logsystem.cpp

In projects, ex: Messenger i Removed all LOG_xxx macro call but can't figure out why the linker can't resolve externals...

#4

Anyone? 

I still can't figure out.



Forum Jump:


Users browsing this thread: 1 Guest(s)