Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试在 DevC++ 中使用 TCP (http://en.wikipedia.org/wiki/Berkeley_sockets) 编译客户端-服务器示例,但我收到错误消息:[链接器错误] 未定义对“套接字”的引用 [链接器错误]未定义对“htons”等的引用我已经安装了 MingW
您需要链接到ws2_32.lib- 通常-lws2_32在链接器命令行上使用
ws2_32.lib
-lws2_32