PDA

View Full Version : Linker error (app+plugin) on Linux Qt 4.5.1



janus
17th May 2009, 17:55
Hi,

I have some custom widgets in a designerplugin. I added the INCLUDEPATH and LIBS += -Lmypath -lmyplugin to the apps pro file. At the end of compiling i get the error


... \myplugin.so: undefined reference to QLabel::eventFilter ...

I am confused because I do not use an eventFilter on a QLabel anywhere :confused:
Actually on Windows with Qt 4.5.0 everything compiles and runs.

janus
18th May 2009, 12:43
I added the full path to the plugin in LIBS instead of a relative one. This seems to solve the problem, although I do not understand why the error message was not "can't find xxxx file".