[实践OK]fatel error C1083:无法打开包括文件:stdint.h: No such file or directory

jackxiang 2014-11-3 16:54 | |
背景:visual 2008下面的这个问题确实存在。
最近尝试在windows XP下编译chromium,过程可谓艰辛无比啊,编译了一天总算是有结果了,下面就是痛苦的解决编译错误的过程了。

fatal error C1083: 无法打开包括文件:“stdint.h”: No such file or directory
stdint.h是c99标准的头文件,vc不支持,所以肯定会提示“No such file or directory”的。

解决办法:

去googlecode下载http://msinttypes.googlecode.com/files/msinttypes-r26.zip

解压后会得到三个文件,把inttypes.h和stdint.h放到vc的include目录就可以了。

我安装的是VS2008,安装到的默认位置,因此include的路径就是:

C:\Program Files\Microsoft Visual Studio 9.0\VC\include
通过以上方法,成功解决编译错误。
原创文章请注明转载于知蚁博客,本文地址:http://www.letuknowit.com/archives/fatel-error-c1083-stdint-h-no-such-file-or-directory

简单配置,在Windows和Visual Studio上安装Boost:
http://www.cnblogs.com/me115/archive/2010/10/08/1845825.html

作者:jackxiang@向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除
地址:http://jackxiang.com/post/7602/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!

评论列表
发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]