您的位置:首页 > 编程语言 > C语言/C++

vs2013报错 无法打开包含文件 "winsock2.h" 的一种解决办法

2015-12-17 23:05 465 查看
找来找去,很多答案,比如要装win7 SDK等等。最后选择了一种方法,来自http://stackoverflow.com/questions/21029654/error-c1083-cannot-open-include-file-winsock2-h-no-such-file-or-directory

An alternative is to try this: - Open the Project properties - Goto Configuration Properties -> General - Set the Platform Toolset to v120_xp (Visual Studio 2013 - Windows XP) - Recompile

(打开项目属性-配置属性-常规-平台工具集-‘选择xp那一项’-重新编译)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  win7 visual studio C++