User Tools

Site Tools


stdio.h_no_such_file_or_directory

stdio.h: No such file or directory


As a part of testing out Linux Mint XFCE 16, I created a simple “hello world” in C:

#include <stdio.h>
 
main()
{
 printf ("Hello, world!\n");
}

But, when I tried to compile it:

gcc hello.c

I got this:

stdio.h: No such file or directory

It seems that there are a few libraries that are not installed by default. It's easy to add them, though:

sudo apt-get install build-essential

After doing this, the code compiles.

stdio.h_no_such_file_or_directory.txt · Last modified: 2023/08/23 12:17 by jimc