undefined reference to `__imp_WSASocketA'/undefined reference to `__imp_WSAStartup等

报错信息:

在参数一栏中添加 -lws2_32

其他方法:https://blog.csdn.net/weixin_39591031/article/details/115222662

备注:如果加wsock32依旧报类似错,则将wsock32换成ws2_32

posted @ 2022-02-15 16:18  z9m8r8  阅读(497)  评论(0编辑  收藏  举报