error LNK2019: unresolved external symbol __imp__WSACleanup @ 0, the symbol is referenced in the function _wmain

1> TcpSrv.obj: error LNK2019: unresolved external symbol __imp__WSACleanup @ 0, the symbol is referenced in the function _wmain

 

Workaround: Add the header files #pragma comment (lib, "ws2_32.lib")

Guess you like

Origin www.cnblogs.com/mofei004/p/11414407.html