joerg-krause writes
When using the pkg-config file to build upmpdcli with libupnpp the compilation fails:
src/netcon.cpp:50:17: fatal error: log.h: No such file or directory
#include "log.h"
The issue is that the pkg-config file uses /include as header path whereas the Makefile uses /include/libupnpp.
Using the library name as prefix for including a header file has the advantage that it is clear where this file belongs to: #include "libupnpp/log.h"
. Furthermore, it prevents any conflicts with header files from different libraries having the same name.