Go Down

Topic: C++ problem with pure virtual method (Read 7 times) previous topic - next topic

Kiril


Coding Badly

That's really odd.  I have a Sketch with a pure virtual function...

Code: [Select]

class TrdApplication
{
public:
 virtual void Run( bool& OkToSleep ) = 0;
};


...and I haven't had any problems.

I prefer declarations and code separated so that might make a difference.

The compiler / linker must think that you've created an instance of DebouncedButton.

Oh well.  I'm glad you found a solution.

- Brian

Kiril

Quote
That's really odd.  I have a Sketch with a pure virtual function...


Indeed it is. Are you compiling this with the Arduino IDE? My problem is not the DebounceButton class, but this. Sorry for taking over this thread.

Coding Badly


Go Up