codeblocks winsock配置

在codeblocks进行Socket编程遇到如下情况:

undefined reference to WSAStartup@8

解决方法:

右击工程,选择 build options,选择 Linker setting,在  Other linker options 中添加: -lwsock32
问题解决。

原文地址:https://www.cnblogs.com/lxc1910/p/8902892.html