Hi all,

I am trying to develop the Qt application with plugin and the plugin library isPainterplugin . And .pro file looks like this ,

HEADERS += interfaces.h
SOURCES += main.cpp
LIBS = -L -lPainterplugin
CONFIG += staticlib

But while compiling using the Qt Creator its giving the following error ,

debug/main.o: In function `ZN5QListI7QStringE14const_iteratorC1EPNS1_4NodeE' :
c:/Qt/2009.04/qt/include/QtCore/../../src/corelib/tools/qlist.h.text$_ZN33StaticPainterpluginPluginInstanceC1Ev[StaticPainterpluginPluginInstance::StaticPainterpl uginPluginInstance()]+0x9): undefined reference to `qt_plugin_instance_Painterplugin()'
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug\Apps_plugin.exe] Error 1
mingw32-make: *** [debug] Error 2
Exited with code 2.
Error while building project Apps_plugin
When executing build step 'Make'

Can anybody please help me out in tis issue ....