Fatal Error: stio.h: No such file or directory in C

Here, we will learn why a Fatal error: stio.h: No such file or directory is occurred and how to fix it in C programming language?
By IncludeHelp Last updated : March 10, 2024

Fatal Error: stio.h: No such file or directory

stio.h is not a valid header file in C programming language, when you write the program, sometimes, we may forget to write the header file name correctly - in that case such fatal error is occurred.

Example

#include <stio.h>

int main(void){
	printf("Hello world");
	return 0;
}

Output

prog.c:1:18: fatal error: stio.h: No such file or directory
 #include <stio.h>
                  ^
compilation terminated.

How to fix?

See the header fie inclusion section, I wrote #include <stio.h> instead of #include <stdio.h>, to fix this or such errors, we should use correct header file names.

Correct Code

#include <stdio.h>

int main(void){
	printf("Hello world");
	return 0;
}

Output

Hello world

C Common Errors Programs »


Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.