Code::Blocks环境下导入WS2_32.lib文件

    打开菜单选项中 Settings -> Compiler

    点击Add

    

    找到lib文件的路径,导入

    

    点击OK--OK,完成!

原文地址:https://www.cnblogs.com/cttcarrotsgarden/p/10100520.html