错误 C1083:无法打开包含文件:“winsock2.h":没有这样的文件或目录 [英] error C1083: cannot open include file: 'winsock2.h': No such file or directory

查看:115
本文介绍了错误 C1083:无法打开包含文件:“winsock2.h":没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试构建 Snare (http://www.intersectalliance.com/projects/BackLogNT/) 项目.

Visual Studio 2013 returns this error when I tried to build a Snare (http://www.intersectalliance.com/projects/BackLogNT/) project.

我安装了 Windows SDK 并且我意识到我应该将 SDK 路径包含到我的项目中.谁能解释一下如何将 SDK 路径包含到 Visual Studio 项目中?

I installed the Windows SDK and I realized that I am supposed to include the SDK path into my project. Could anyone explain how to include the SDK path into a Visual Studio project?

推荐答案

在 Visual Studio 2013 中,在解决方案资源管理器下,右键单击项目 -> 属性 -> 配置属性 -> VC++ 目录,然后包含 (WindowsSDK_IncludePath_um);在包含和库目录中.我能够用这种方法解决这个问题.

In Visual Studio 2013, under Solution Explorer, right click on the project -> Properties -> Configuration Properties -> VC++ Directories, then include (WindowsSDK_IncludePath_um); in Include and Library Directories. I was able to solve this issue with this approach.

这篇关于错误 C1083:无法打开包含文件:“winsock2.h":没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆