g++ can‘t find stdint.h Windows

539 views Asked by At

I have a program that uses the header stb_image.h ini which the stdint.h header is included. The program works completely fine when compiling it in my IDE (Clion). It is now finished however and I would like to have an .exe file of it. So I tried compiling it with g++ by the command:

g++ -o imagetotext main.cpp

It then however gave me the error:

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

What can I do that g++ finds the stdint.h header? I am using Windows.

0

There are 0 answers