MinGW linker error: winsock

前端 未结 4 1981
暗喜
暗喜 2020-11-28 05:50

I am using MinGW compiler on Windows to compile my C++ application with sockets. My command for linking looks like:

g++.exe -Wall -Wno-long-long -pedantic -l         


        
4条回答
  •  伪装坚强ぢ
    2020-11-28 06:05

    In:

    Menu - Project - Properties - c/c++Build - Settings: Register "Tool Settings" - MinGW C++ Linker - Miscellaneous: Lower Part "other objects"

    Add: libwsock32.a from bin folder of MinGW.

提交回复
热议问题