I am writting a small program in VC++ 6, which has a class and a driver to test it. It compiles ok, but when I try to build it, i get 14 identical errors for each function in the class. The error is:
date.obj : error LNK2005: "public: __thiscall Date:ate(void)" (??0Date@@QAE@XZ) already defined in driver.obj
I have had a search on the net and this forum and this problem is supposed to be caused by using <iostream> instead of <iostream.h> etc, for the other headers. But i have not done that.
The program builds and runs fine in dev c++ which is why I think it may be a setting in VC++ somewhere but there are a lot of them.
Can anyone shed some light on this?
Thanks in advance