user1345414
user1345414

Reputation: 3865

MinGW gcc can’t resolve system header files

I’m trying to compile My C apps for windows 64bit with MinGW64+msys.

After installing them I started gcc for sample program and got following error.

C:\MinGW\bin>gcc a.c

a.c:1:19: fatal error: stdio.h: No such file or directory

compilation terminated.

C:\MinGW\bin>

But stdio.h file is in C:\MinGW\include.

What should I do for resolving stdio.h?

Upvotes: 1

Views: 2319

Answers (1)

Dannie
Dannie

Reputation: 2480

You can try: gcc a.c -IC:\MinGW\include and see if it compiles.

Upvotes: 1

Related Questions