VC6.0 error LNK2001: unresolved external symbol __imp__ntohl@4

--------------------Configuration: oxToint1 - Win32 Debug--------------------
Linking...
main.obj : error LNK2001: unresolved external symbol __imp__ntohl@4
Debug/oxToint1.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.

oxToint1.exe - 1 error(s), 0 warning(s)

解决:

1.加入头文件:

#include <Winsock2.h>

2.菜单栏------>Project------>Settings------>Link标签页------>Object/library modules------>加入ws2_32.lib------>重新编译连接------>解决。

原文地址:https://www.cnblogs.com/azbane/p/9431584.html