Hey,

I am using visual studio 2005 to make a console application to talk over TCP/IP ethernet. I am using winsock2.h, but am getting linker errors. For example:

error LNK2019: unresolved external symbol "public: __thiscall CWinsockInterface::~CWinsockInterface(void)" (??1CWinsockInterface@@QAE@XZ) referenced in function "void __cdecl `dynamic atexit destructor for 'WinS''(void)" (??__FWinS@@YAXXZ)

I have tried adding ws2_32.lib and wsock32.lib to the inputs of the linker. Niether one has worked and I can't seem to figure this out. It is driving me crazy because I have used winsock2.h before and linking ws2_32.lib has worked.

Any suggestions would be greatly appreciated. Thanks.

Nemo

>>CWinsockInterface::~CWinsockInterface
Sounds like something that you wrote. To my knowledge there is no such Microsoft class.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.