winsock2.h,没有那个文件或目录 [英] winsock2.h, no such file or directory

查看:208
本文介绍了winsock2.h,没有那个文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 XP 上的 Visual Studio 2008 中编译我的 Visual C++ 项目时出现此错误.如何解决此错误:(

I have this error while compiling my Visual C++ project in Visual Studio 2008 on XP. How to resolve this error :(

Error   1   fatal error C1083: Cannot open include file: 'winsock2.h': No such file or directory    c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atlbase.h    68  WOT

推荐答案

您的 Windows SDK 配置不正确.解决此问题的最简单方法是安装 Windows 7 SDK.(是的,你可以在windows xp上安装并为xp开发)

Your Windows SDK is not configure correctly. The easiest way to fix this is to install Windows 7 SDK. (yes, you can install it on windows xp and develop for xp)

这篇关于winsock2.h,没有那个文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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