Hi

I have these files in my project:

/home/myproj/lib/myPlugin.h

Qt Code:
  1. class MYPROJ_EXPORT myPlugin : public QObject
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6. virtual ~myPlugin();
  7. virtual myPlugin * newInstance() const = 0;
  8. virtual qreal speed() const;
  9. virtual qreal direction() const;
  10.  
  11. protected:
  12. myPlugin();
  13.  
  14. private:
  15. Q_DISABLE_COPY( myPlugin )
  16. };
  17.  
  18. }
To copy to clipboard, switch view to plain text mode 

/home/myproj/lib/myPlugin.cpp

Qt Code:
  1. #include "PositionProviderPlugin.h"
  2.  
  3.  
  4.  
  5. myProj::myPlugin::myPlugin()
  6. {
  7. }
  8.  
  9. myProj::myPlugin::~myPlugin()
  10. {
  11. }
  12.  
  13. qreal myProj::myPlugin::speed()
  14. {
  15. }
  16.  
  17. qreal myProj::myPlugin::direction()
  18. {
  19. }
  20. #include "myPlugin.moc"
To copy to clipboard, switch view to plain text mode 

When I compile I get this error:

error: prototype for ‘qreal myProj::myPlugin::speed()’ does not match any in class ‘myProj::PositionProviderPlugin’
error: candidate is: virtual qreal myProj::myPlugin::speed() const

error: prototype for ‘qreal myProj::myPlugin::direction()’ does not match any in class ‘my::PositionProviderPlugin’
error: candidate is: virtual qreal myProj::myPlugin::direction() const

How can I correct this ?