gpt4 book ai didi

c++ - errno.h 的问题

转载 作者:搜寻专家 更新时间:2023-10-31 00:47:50 24 4
gpt4 key购买 nike

我正在使用 VC10 编写一个简单的 SDL 程序。我遇到的问题是编译程序:

Error 1 error C1083: Cannot open include file: 'errno.h': No such file or directory c:\program files\microsoft visual studio 10.0\vc\include\cerrno 14

Error 2 error C1083: Cannot open include file: 'errno.h': No such file or directory c:\program files\microsoft visual studio 10.0\vc\include\cerrno 14

Error 3 error C1083: Cannot open include file: 'errno.h': No such file or directory c:\program files\microsoft visual studio 10.0\vc\include\cerrno 14

Error 4 error C1083: Cannot open include file: 'errno.h': No such file or directory c:\program files\microsoft visual studio 10.0\vc\include\cerrno 14

我不确定可能是什么问题。我的包含中没有 errno.h 文件。我不知道从哪里得到它,也不知道它是否在那里。我能做些什么?我一直在寻找 errno.h 文件,但似乎都是针对 Linux 平台的。

最佳答案

您是否安装了 VS2010 的 SP1,如果是,您可以为 Windows SDK 7.1 安装 Visual C++ 2010 SP1 编译器更新来解决问题,见http://blogs.msdn.com/b/vcblog/archive/2011/03/31/10148110.aspx

关于c++ - errno.h 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3427792/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com