stdint.h是c99标准的头文件,vc不支持,所以肯定会提示“No such file or directory”的。

stdint.h是C99的标准,主要用于统一跨平台数据定义。

MSVC中不带有这个头文件,直到VS2010

解决办法:

去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

通过以上方法,成功解决编译错误。

相关文章:

  • 2022-12-23
  • 2021-08-23
  • 2021-11-15
  • 2021-12-27
  • 2021-12-20
  • 2021-09-18
  • 2021-06-24
  • 2022-12-23
猜你喜欢
  • 2021-06-08
  • 2021-09-09
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案