I ma not sure why i would be getting this error. After awhile of not figuring it out, i figured i would ask the forums. I am not sure if i acciedently deleted a character or something as i cannot figure out why this error would be present.
test.cpp:55:9: error: expected ‘;’ after class definition
}
^
test.cpp: In function ‘void run()’:
test.cpp:58:20: error: ‘window’ was not declared in this scope
while (window.isOpen()){
^
test.cpp:60:36: error: ‘event_handler’ was not declared in this scope
event_handler(event);
^
test.cpp:61:29: error: ‘update’ was not declared in this scope
update(event);
^
test.cpp: At global scope:
test.cpp:64:1: error: expected declaration before ‘}’ token
};
^
ok figured it out. After posting i reviewed the code one last time, and I must of accidently deleted a bracket somehow: while(window.pollEvent(event))
to while(window.pollEvent(event)){