Link to home
Start Free TrialLog in
Avatar of Shony
Shony

asked on

VC++: unresolved symbols


When linking a C++ program with VC++6.0, I get errors like the following.
What is the necessary library ?

sockif.obj : error LNK2001: Nichtaufgeloestes externes Symbol __imp__socket@12
sockif.obj : error LNK2001: Nichtaufgeloestes externes Symbol __imp__closesocket@4
sockif.obj : error LNK2001: Nichtaufgeloestes externes Symbol __imp__htons@4
sockif.obj : error LNK2001: Nichtaufgeloestes externes Symbol __imp__inet_addr@4
sockif.obj : error LNK2001: Nichtaufgeloestes externes Symbol __imp__htonl@4
sockif.obj : error LNK2001: Nichtaufgeloestes externes Symbol __imp__bind@12
sockif.obj : error LNK2001: Nichtaufgeloestes externes Symbol __imp__listen@8
sockif.obj : error LNK2001: Nichtaufgeloestes externes Symbol __imp__gethostbyname@4
sockif.obj : error LNK2001: Nichtaufgeloestes externes Symbol __imp__connect@12
sockif.obj : error LNK2001: Nichtaufgeloestes externes Symbol __imp__accept@12
sockif.obj : error LNK2001: Nichtaufgeloestes externes Symbol __imp__getsockname@12
sockif.obj : error LNK2001: Nichtaufgeloestes externes Symbol __imp__send@16
sockif.obj : error LNK2001: Nichtaufgeloestes externes Symbol __imp__recv@16
sockif.obj : error LNK2001: Nichtaufgeloestes externes Symbol __imp__shutdown@8
sockif.obj : error LNK2001: Nichtaufgeloestes externes Symbol __imp__ioctlsocket@12
sockif.obj : error LNK2001: Nichtaufgeloestes externes Symbol __imp__select@20
Avatar of ruff_ryder
ruff_ryder
Flag of United States of America image

try the Winsock library ... WS2_32.LIB or WSOCK32.LIB  ... u can usually find it in the VC98\lib folder of your visual studio install directory.
ASKER CERTIFIED SOLUTION
Avatar of mnashadka
mnashadka

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial