Problem compiling network code
Here is the list of messages:
Linking...
SocketObject.obj : error LNK2001: unresolved external symbol __imp__WSAStartup@8
SocketObject.obj : error LNK2001: unresolved external symbol __imp__recv@16
SocketObject.obj : error LNK2001: unresolved external symbol __imp__send@16
SocketObject.obj : error LNK2001: unresolved external symbol __imp__connect@12
SocketObject.obj : error LNK2001: unresolved external symbol __imp__socket@12
SocketObject.obj : error LNK2001: unresolved external symbol __imp__htons@4
SocketObject.obj : error LNK2001: unresolved external symbol __imp__WSASetLastError@4
SocketObject.obj : error LNK2001: unresolved external symbol __imp__gethostbyname@4
SocketObject.obj : error LNK2001: unresolved external symbol __imp__inet_addr@4
SocketObject.obj : error LNK2001: unresolved external symbol __imp__closesocket@4
SocketObject.obj : error LNK2001: unresolved external symbol __imp__bind@12
SocketObject.obj : error LNK2001: unresolved external symbol __imp__htonl@4
SocketObject.obj : error LNK2001: unresolved external symbol __imp__listen@8
SocketObject.obj : error LNK2001: unresolved external symbol __imp__accept@12
Debug/ConnectionTest.exe : fatal error LNK1120: 14 unresolved externals
Error executing link.exe.
ConnectionTest.exe - 15 error(s), 0 warning(s)
But I never used the __****** and I don''t see any reference in any of my Header, CPP files?
Is this used in the file?
Many thanks
Hardware: the parts of a computer that can be kicked
Software: the parts of a computer that you wnat to kick
Hardware: the parts of a computer that can be kickedSoftware: the parts of a computer that you wnat to kick
February 13, 2002 06:20 AM
you need to link with Ws2_32.lib
the easiest way is to use pragma in your source like this:
#pragma comment(lib, "Ws2_32.lib"
/emptyhead
the easiest way is to use pragma in your source like this:
#pragma comment(lib, "Ws2_32.lib"
/emptyhead
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement