1.
Linking...
Globals.obj : error LNK2001: unresolved external symbol __imp__WSACleanup@0Globals.obj : error LNK2001: unresolved external symbol __imp__inet_ntoa@4
Globals.obj : error LNK2001: unresolved external symbol __imp__gethostbyname@4
Globals.obj : error LNK2001: unresolved external symbol __imp__gethostname@8
Globals.obj : error LNK2001: unresolved external symbol __imp__WSAStartup@8
Debug/EnerySource.exe : fatal error LNK1120: 5 unresolved externals
Error executing link.exe.
EnerySource.exe - 6 error(s), 0 warning(s)
解决:project-> settings中的link页,object/library modules下面加上这个ws2_32.lib