R
Ron Eggler
Hi,
I'm trying to define a sinlgeton class but I'm having troubles to get it
compiled, my declaration looks like:
#include "tspthread.h"
#ifndef GPIOCONTROL_H_
#define GPIOCONTROL_H_
class GPIOcontrol: public TSPThread
{
public:
static GPIOcontrol* Instance();
protected:
GPIOcontrol();
virtual ~GPIOcontrol();
private:
/**
* The main thread method
*/
virtual void run();
static GPIOcontrol* pinstance;
};
#endif /*GPIOCONTROL_H_*/
But it doesn't compile on the line "static GPIOcontrol* Instance();" it
tells me "error: candidate is: static GPIOcontrol* GPIOcontrol::Instance()"
and i don't understand what coudl be wrong, any help would be appreciated!
Thanks!
Ron
I'm trying to define a sinlgeton class but I'm having troubles to get it
compiled, my declaration looks like:
#include "tspthread.h"
#ifndef GPIOCONTROL_H_
#define GPIOCONTROL_H_
class GPIOcontrol: public TSPThread
{
public:
static GPIOcontrol* Instance();
protected:
GPIOcontrol();
virtual ~GPIOcontrol();
private:
/**
* The main thread method
*/
virtual void run();
static GPIOcontrol* pinstance;
};
#endif /*GPIOCONTROL_H_*/
But it doesn't compile on the line "static GPIOcontrol* Instance();" it
tells me "error: candidate is: static GPIOcontrol* GPIOcontrol::Instance()"
and i don't understand what coudl be wrong, any help would be appreciated!
Thanks!
Ron