Hello everyone,
I'm stuck on this issue. I tried to simplify my script as best as possible to reproduce the error. Can can some please explain why I am getting the following error. Thank you so much for your help.
In file included from sketch\Box.cpp:1:0:
Box.h:4:5: error: 'Debug' does not name a type
Debug debug;
Sorry...I should have mentioned that I tried that. It produces the following error
n file included from sketch\Box.h:1:0,
from D:\project\escape\puzzle box\source\Bug\Bug.ino:2:
Debug.h:1:7: error: redefinition of 'class Debug'
class Debug {
^~~~~
In file included from D:\project\escape\puzzle box\source\Bug\Bug.ino:1:0:
sketch\Debug.h:1:7: note: previous definition of 'class Debug'
class Debug {
^~~~~
exit status 1
redefinition of 'class Debug'
I believe this is because it is included already in main
Debug, its a lot like cheeseburger. Try to redefine cheeseburger and you will run into all sorts that think its already defined. Try a different name?
Oh, and what its the point of state? It looks like you default it to true. Then test for it everywhere and nowhere is it ever changed. Seeing that its private, no one else can change it either.