找来找去,很多答案,比如要装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那一项’-重新编译)
vs2013报错 无法打开包含文件 "winsock2.h" 的一种解决办法
最新推荐文章于 2024-08-07 18:42:10 发布