PDA

View Full Version : Plugins question/problem



Royceybaby
10th October 2006, 16:37
I am trying to work out how to implement plugins but I am getting the following error:


In file included from helloworld_plugin.h:1,
from helloworld_plugin.cpp:1:
../plugins.h:12: error: expected identifier before string constant
../plugins.h:12: error: expected `,' or `...' before string constant

This is the piece of code in question:



#ifndef INTERFACES_H
#define INTERFACES_H

class QString;

class PluginInterface
{
public:
virtual QString getString() = 0;
};

Q_DECLARE_INTERFACE(PluginInterface, "PluginExample.PluginInterface/1.0")

#endif


What am I doing wrong?

Qt4.1.4 and MinGw on winxp

Thanks,
Royce

Royceybaby
10th October 2006, 16:45
ADMIN - Please delete as I was being a prize plum. :o