I have another problem ... I downloaded the log4cpp library and compiled it via Microsoft Visual Studio into a .lib-file. Now I want to link that library into a QT Project, but whenever I call a function, such as
std::string initFileName = "log.properties";
log4cpp::PropertyConfigurator::configure(initFileName);
I get lots of errors saying
"undefined reference to `log4cpp::PropertyConfigurator::configure(std::string const&)'"
Here's the code in the project file:
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/log4cpp/ -llog4cppLIB
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/log4cpp/ -llog4cppD
else:unix: LIBS += -L$$PWD/log4cpp/ -llog4cppLIB
INCLUDEPATH += $$PWD/log4cpp/include
DEPENDPATH += $$PWD/log4cpp/include
I don't know, what to do :(