LCKB
Unable to remove log4cxx logger, got a lot of Linker unresolved External - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193)
+---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157)
+----- Forum: Ep4 Support (https://lckb.dev/forum/forumdisplay.php?fid=128)
+----- Thread: Unable to remove log4cxx logger, got a lot of Linker unresolved External (/showthread.php?tid=4772)



- Andrein95 - 06-08-2021


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




- Veni - 06-08-2021


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.




- Andrein95 - 06-08-2021


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...




- Andrein95 - 06-14-2021


Anyone? 

I still can't figure out.