
link problem, error LNK2005 using CSocket
Hi,
I'm trying to use a derived class from Csocket using this includes:
#include <winsock.h>
#include <afxsock.h>
and when I try to build it it gave me this:
Spa.obj : error LNK2005: "protected: static struct CRuntimeClass * __stdcall
CSocketX::_GetBaseClass(void)"
socketx.obj
Spa.obj : error LNK2005: "public: virtual struct CRuntimeClass * __thiscall
CSocketX::GetRuntimeClass(void)const "
Debug/Spa.exe : fatal error LNK1169: one or more multiply defined symbols
found
I think is an lib include I have miss, but I dont know wich one? does
anybody knows?, and how can I know , cause it will happen again in the
future
thanks in advance
jonathan