首页 > 解决方案 > g++ 找不到 stdint.h Windows

问题描述

我有一个程序使用包含 stdint.h 标头的标头 stb_image.h ini。该程序在我的 IDE (Clion) 中编译时完全正常。然而它现在已经完成了,我想要一个它的 .exe 文件。所以我尝试通过以下命令用 g++ 编译它:

g++ -o imagetotext main.cpp

然后它给了我错误:

stb_image.h:614: stdint.h: No such file or directory

我能做什么让 g++ 找到 stdint.h 标头?我正在使用 Windows。

标签: c++g++stdint

解决方案


推荐阅读