Simple question
-
does anyone know why this linking error is happening: error LNK2005: "public: __thiscall CMove::CMove(int &,int &)" (??0CMove@@QAE@AAH0@Z) already defined in Computer.obj i have define my inclusion guards and everything but this error still keeps coming up. can anyone tell me wats the cause of this linking error... :( well, anyways, thank for you help :) john:confused:
-
does anyone know why this linking error is happening: error LNK2005: "public: __thiscall CMove::CMove(int &,int &)" (??0CMove@@QAE@AAH0@Z) already defined in Computer.obj i have define my inclusion guards and everything but this error still keeps coming up. can anyone tell me wats the cause of this linking error... :( well, anyways, thank for you help :) john:confused:
Make it inline inline CMove::CMove(int&, int& ) { }
-
does anyone know why this linking error is happening: error LNK2005: "public: __thiscall CMove::CMove(int &,int &)" (??0CMove@@QAE@AAH0@Z) already defined in Computer.obj i have define my inclusion guards and everything but this error still keeps coming up. can anyone tell me wats the cause of this linking error... :( well, anyways, thank for you help :) john:confused:
CMove::CMove must be defined in your code twice. The error suggests that it is in Computer.cpp and and in another file. Where is the CMove constructor body, is it in Computer.cpp? If you are certain it isn't defined twice, try doing a rebuild all. Michael :-)