Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linkage problems in Visual C++

Status
Not open for further replies.

smantri

Programmer
Dec 4, 2001
1
US
I am compiling C programs using Visual C++ 6.0. The compiles are with 0 errors but the linkage problems are many. Here they are. Do you know which libraries I need to include to eliminate these link problems? Thanks.

Linking...
Pcx.obj : error LNK2001: unresolved external symbol _closesocket@4
Pcx.obj : error LNK2001: unresolved external symbol _connect@12
Pcx.obj : error LNK2001: unresolved external symbol _WSACleanup@0
Pcx.obj : error LNK2001: unresolved external symbol _socket@12
Pcx.obj : error LNK2001: unresolved external symbol _htons@4
Pcx.obj : error LNK2001: unresolved external symbol _gethostbyname@4
Pcx.obj : error LNK2001: unresolved external symbol _WSAStartup@8
Pcx.obj : error LNK2001: unresolved external symbol _recv@16
Pcx.obj : error LNK2001: unresolved external symbol _send@16
Debug/Phillips.exe : fatal error LNK1120: 9 unresolved externals
Error executing link.exe.

Phillips.exe - 10 error(s), 0 warning(s)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top