MinGW linker error: winsock

前端 未结 4 1987
暗喜
暗喜 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

    with mingw on eclipse: Menu - Projekt - Properties - c/c++Build - Settings: Register "Tool Settings" - MinGW C Linker - Miscellaneous: Lower Part "other objects" add: "D:\Programmierung\mingw\lib\libwsock32.a" for example. No other entries for libwsock32.a on any other properties required, especially not in Library-entries. Also no flags relating to this Lib.

提交回复
热议问题