Hi,

I'm using Qt4.4.3 (compiled statically from source and it works) to compile a program statically using plugins. I have previously been able to do this but now I'm getting error messages. Here's what I'm doing:

My main.cpp defines plugins like this:

Qt Code:
  1. Q_IMPORT_PLUGIN(qjpeg)
  2. Q_IMPORT_PLUGIN(qgif)
  3. Q_IMPORT_PLUGIN(qtiff)
To copy to clipboard, switch view to plain text mode 

My hfile.h looks like this:

Qt Code:
  1. TEMPLATE = app
  2. TARGET =
  3. DEPENDPATH += .
  4. INCLUDEPATH += .
  5. CONFIG += staticlib
  6. QTPLUGIN += qjpeg \
  7. qgif \
  8. qtiff
  9.  
  10. # Input
  11. HEADERS += hfile.h draw.cpp rubberband.cpp cluster.cpp cluster2.cpp batch.cpp
  12. SOURCES += batch.cpp cluster.cpp cluster2.cpp draw.cpp main.cpp rubberband.cpp
To copy to clipboard, switch view to plain text mode 

When I compile this I get the following error messages:

.../src/corelib/global/global.h undefined rerefence to 'qt_plugin_instance_qtiff()'
.../src/corelib/global/global.h undefined rerefence to 'qt_plugin_instance_qgif()'
.../src/corelib/global/global.h undefined rerefence to 'qt_plugin_instance_qjpeg()'

Does anyone have ideas as to what is happening? It must be some small thing because I have been able to compile the same program on the same computer before using the same static system. THANKS SO MUCH!