b.cpp
#include"a.h"
#include"a.cpp"
int main(){}
a.cpp
#include"a.h"
a::a(): b(0) { }
a.h
#ifndef A
#define A
class a{
int b;
a();
};
#endif
Getting; "1>b.obj : error LNK2005: "private: __thiscall a::a(void)" (??0a@@AAE@XZ) already defined in a.obj" when trying to compile.
Using Visual Studio 2010, Windows 7 64bits
Wheres my mistake?
Tyvm for your anwsers.