I am building a static plugin for a Qt application and keep getting the following error message. I'm sure the error is obvious,but I haven't been able to find it. The interface and code are mimics of the example plugin just to test the build. Thanks for any help.

Error 1 error LNK2019: unresolved external symbol "class QObject * __cdecl qt_plugin_instance_juryplugin(void)" (?qt_plugin_instance_juryplugin@@YAPAVQObject@@XZ) referenced in function "public: __thiscall StaticjurypluginPluginInstance::StaticjurypluginPl uginInstance(void)" (??0StaticjurypluginPluginInstance@@QAE@XZ) main.obj Statfit3
Qt Code:
  1. #ifndef JURYINTERFACE_H
  2. #define JURYINTERFACE_H
  3.  
  4. #include <QString>
  5.  
  6. class JuryInterface
  7. {
  8. public:
  9. virtual ~JuryInterface() {}
  10. virtual QString echo(const QString &message) = 0;
  11. };
  12. Q_DECLARE_INTERFACE(JuryInterface,
  13. "com.geerms.JuryPlugin.JuryInterface/1.0");
  14.  
  15. #endif
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. #ifndef JURYPLUGIN_H
  2. #define JURYPLUGIN_H
  3.  
  4. #include <QtCore>
  5. #include "juryinterface.h"
  6.  
  7. class JuryPlugin : public QObject,
  8. public JuryInterface
  9. {
  10. Q_OBJECT
  11. Q_INTERFACES(JuryInterface)
  12.  
  13. public:
  14. QString echo(const QString &message);
  15.  
  16. };
  17.  
  18. #endif // JURYPLUGIN_H
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. #include "juryplugin.h"
  2.  
  3. QString JuryPlugin::echo(const QString &message)
  4. {
  5. return message;
  6. }
  7.  
  8. Q_EXPORT_PLUGIN2(juryplugin, JuryPlugin);
To copy to clipboard, switch view to plain text mode 

the main.cpp has

Qt Code:
  1. Q_IMPORT_PLUGIN(juryplugin);
To copy to clipboard, switch view to plain text mode