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
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
To copy to clipboard, switch view to plain text mode
This is the piece of code in question:
#ifndef INTERFACES_H
#define INTERFACES_H
class PluginInterface
{
public:
};
Q_DECLARE_INTERFACE(PluginInterface, "PluginExample.PluginInterface/1.0")
#endif
#ifndef INTERFACES_H
#define INTERFACES_H
class QString;
class PluginInterface
{
public:
virtual QString getString() = 0;
};
Q_DECLARE_INTERFACE(PluginInterface, "PluginExample.PluginInterface/1.0")
#endif
To copy to clipboard, switch view to plain text mode
What am I doing wrong?
Qt4.1.4 and MinGw on winxp
Thanks,
Royce
Bookmarks