codeblocks winsock配置 在codeblocks进行Socket编程遇到如下情况: undefined reference to WSAStartup@8 解决方法: 右击工程,选择 build options,选择 Linker setting,在 Other linker options 中添加: -lwsock32问题解决。