c++ - undefined reference to function from log4cpp library -
i have problem ... downloaded log4cpp library , compiled via microsoft visual studio .lib-file. want link library qt project, whenever call function, such as
std::string initfilename = "log.properties"; log4cpp::propertyconfigurator::configure(initfilename);
i lots of errors saying
"undefined reference `log4cpp::propertyconfigurator::configure(std::string const&)'"
here's code in 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, :(
if library compiled visual studio, should configure project use same compiler instead of mingw/gcc.
Comments
Post a Comment