I am building a basic VM and my code will not compile, get the error
"In file included from Main.cpp:2:
Instruction.hpp:15:2: error: expected ‘;’ after class definition " But there is a ; there.
Does this code come from a header file? Is it being included in a source file that has other headers included above it? Could the actual error be caused by one of those earlier headers?
I do not think that any other file causes this error. I switched the include statements now I get to following compiler error:
"Instruction.hpp:14:2: error: ‘uint16_t’ does not name a type
14 | uint16_t op1;
| ^~~~~~~~
Instruction.hpp:15:2: error: expected ‘;’ after class definition
15 | }
"