link problem, error LNK2005 using CSocket 
Author Message
 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



Sun, 20 May 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. PRB: LNK2005 Errors When Link C Run-Time Libraries Are Linked Before MFC Libraries (Q148652)

2. Link Errors : error LNK2005 and LNK2004

3. Please Help! - Link Error LNK2005

4. help- Link error LNK2005

5. LNK2005 Link errors when doing Release Build??

6. Please Help! - Link Error LNK2005

7. LNK2005 Link errors when doing Release Build??

8. Link error (LNK2005) - Any suggestions

9. using _variant_t rather than _bstr_t causing linker error LNK2005

10. error LNK2005: using MFC with ATL

11. LNK2005 and LNK2001 errors using CString

12. error LNK2005: - already defined problem

 

 
Powered by phpBB® Forum Software