I have an issue recompiling my code on a newly installed raspi.
/usr/bin/g++ -c -Wall -g -O2 -fdebug-prefix-map=/build/log4cpp-E4MvbD/log4cpp-1.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -MD -MP -MF .dep/DataBlock.o.d DataBlock.cpp -o DataBlock.o /usr/bin/g++ -c -Wall -g -O2 -fdebug-prefix-map=/build/log4cpp-E4MvbD/log4cpp-1.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -MD -MP -MF .dep/MemUsage.o.d MemUsage.cpp -o MemUsage.o /usr/bin/g++ -Wall -g -O2 -fdebug-prefix-map=/build/log4cpp-E4MvbD/log4cpp-1.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -MD -MP -MF .dep/PiAwareStatus.d -lmosquitto -L/usr/lib/arm-linux-gnueabihf -llog4cpp -lpthread PiAwareStatus.o TCPReader.o MQTTWriter.o Mqtt.o DataBlock.o MemUsage.o -o PiAwareStatusand I get a bunch of these errors - more or less every stating that log4ccp ?classes? are missing ...
/usr/bin/ld: PiAwareStatus.o: in function `signalHandler(int)': /mnt/source/raspberry/PiAwareStatus/PiAwareStatus.cpp:143: undefined reference to `log4cpp::NDC::push(std::__cxx11::basic_string, std::allocator > const&)' /usr/bin/ld: /mnt/source/raspberry/PiAwareStatus/PiAwareStatus.cpp:144: undefined reference to `log4cpp::Category::debug(char const*, ...)' /usr/bin/ld: /mnt/source/raspberry/PiAwareStatus/PiAwareStatus.cpp:145: undefined reference to `log4cpp::Category::notice(char const*, ...)' /usr/bin/ld: /mnt/source/raspberry/PiAwareStatus/PiAwareStatus.cpp:150: undefined reference to `log4cpp::Category::notice(char const*, ...)' /usr/bin/ld: PiAwareStatus.o: in function `toggleLogLevel(int)': /mnt/source/raspberry/PiAwareStatus/PiAwareStatus.cpp:162: undefined reference to `log4cpp::NDC::push(std::__cxx11::basic_string, std::allocator > const&)'
G++ Version
g++ (Raspbian 10.2.1-6+rpi1) 10.2.1 20210110
log4cpp version is 1.1. from raspian repository
Has anybody some hints?