error LNK2019: unresolved external symbol __imp__WSAStartup@8 referenced in function _wmain
调试错误:
1>EvpTest.obj : error LNK2019: unresolved external symbol __imp__WSAStartup@8 referenced in function _wmain
1>D:\Test\EvpTest\Debug\EvpTest.exe : fatal error LNK1120: 1 unresolved externals
解决办法:
这不是头文件的问题,是你少加了一个链接库Ws2_32.libproject->setting->link,加入这个库,就好了