I'm new to header files and namespaces so I've been tryed to work on them through websites that show me examples of that. So I made my own namespace through a header and cpp file but I keep getting this error.
Had to remove the code in main() and recompile then re add the code. Must be a bug?
It’s not a bug; you did something wrong.
Don’t fall into the trap of blaming the tools when something goes wrong.
Instead, figure out what you did wrong, and modify your behavior.
MSVC is very smart, and tries to reduce the amount of code recompilation needed. When you move stuff around without performing an appropriate cleanup, you will fool the compiler and get errors like this.
A simple rebuild all would have fixed it.
Also, you do not need a semicolon after an #include statement.