Visual C 的 WinSock 库2008年快递?
请问如何将winsock库添加到Visual C++ 2008 Express?我尝试单独包含
,而不是
但我在 WSAStartup() 上收到 LINK 错误。
我发现某个地方需要为项目添加额外的依赖项,所以我调出了项目属性的链接器,并且在附加依赖项的选择框中没有 ws_32.lib,所以我尝试手动添加它(编写它)但是仍然链接错误....
please how to add winsock library to Visual C++ 2008 Express? I tried including <windows.h>
alone, than <windows.h> and <winsock.h>,
but I get LINK error on WSAStartup().
I found somewhere that you need to add additional dependencies for your project, so I brought up linker for project properties, and in the select box for additional dependencies there was no ws_32.lib, So I tried to add it manually (write it) but still LINK Error....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Visual C++ Express 不安装完整的 Windows SDK。您可以从 Microsoft 下载并安装完整的 SDK。
安装 SDK 后,有一个工具(位于开始菜单中)可用于向 Visual Studio 注册 SDK 目录。之后你应该能够参考winsock。
Visual C++ Express don't install the full Windows SDK. You can download and install the full SDK from Microsoft.
After installing the SDK there is a tool (it will be on the start menu) to register the SDK directories with Visual Studio. After than you should be able to reference winsock.