Delete "class cl" in main.cpp
And add a ';' right after } in test.h. (this is probably causing the weird errors)
And add #include "test.h" in test.cpp
Last edited on
Everything looks correct except line #5 in main.cpp. It must be deleted.
For what it's worth you also don't need #include <iostream>
in test.cpp
Thanks Jikax, that worked, I'll see if something similar's my problem in my bigger project (almost 400 lines of code).