Feb 14, 2012 at 11:34pm
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 Feb 14, 2012 at 11:38pm
Feb 14, 2012 at 11:34pm
Everything looks correct except line #5 in main.cpp. It must be deleted.
Feb 14, 2012 at 11:37pm
For what it's worth you also don't need #include <iostream>
in test.cpp
Feb 15, 2012 at 12:49am
Thanks Jikax, that worked, I'll see if something similar's my problem in my bigger project (almost 400 lines of code).