473,396 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

GCC not finding stdio.h library

I wrote a program, a simple one that prints hello. Yet the gcc compiler cannot run it. It flags the #include <stdio.h> line, saying,
/home/lexito/Desktop/try.c|2|fatal error: stdio.h: No such file or directory|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
Oct 16 '14 #1
1 1319
weaknessforcats
9,208 Expert Mod 8TB
Please post the actual code.

It should look like:

Expand|Select|Wrap|Line Numbers
  1. #include <stdio.h>
If the code looks like the above, verify that there is an stdio.h file on your computer.

If the file is there, then check the settings for your compiler where the directories to search by the compiler have PATH to your file.

Post again if you cannot resolve this.
Oct 16 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

30
by: Chris McDonald | last post by:
Under Linux, I'm using select() to detect when any of a collection of socket descriptors is ready for reading. Associated with each socket descriptor is a FILE pointer, obtained via fdopen(sd,...
53
by: \(ProteanThread\) | last post by:
can "stdio.h" be OS specific at the kernal level or ? i know what I'm trying to ask here but not sure how to word it :-) -- Woodzy http://www.rtdos.com/forum
3
by: Alan Dunne | last post by:
H Im looking to create a C++ program that will take a MIDI file as its input and analyse the data that it contains, extract the necessary information and create a Guitar tablature file Where Im...
36
by: lovecreatesbeauty | last post by:
In the C programming language, I/O operation functions are declared in stdio.h, for example, fopen(), fclose(), fwrite(), fread(), fseek() ... But another set of I/O functions are also defined in...
2
by: Ciko | last post by:
Still not clear to me: why whe use <stdio.h> I haven't link stdio library (in linking stage) while if I use something of <math.h> I must link this library? Thanks in advance.
11
by: Andrew Poelstra | last post by:
I hammered this out this morning to fix inconsistancies with the way my programs handle errors. The code itself is fine, in that it compiles with Richard Heathfield's gcc tags (plus -c because it...
7
by: akennis | last post by:
First of all, sorry for duplicating this post. I put it up in the alt.comp.lang.learn.c-c++ mistakenly. I'm investigating a problem whereby exceptions thrown from functions in a Shared Library...
11
by: Eigenvector | last post by:
I apologize if this is a trivial question, but it's always made me wonder when I have to compile my code. There are some #includes that you don't really need to reference in your library and...
2
by: david wolf | last post by:
My understanding is that cstdio basically is the same as stdio.h except the functions are in a namspace called std. However when I take a look at the content of the file cstdio, it has the...
21
by: omkar pangarkar | last post by:
Hi all, I have two simple hello world programs one using printf() and other using write() --prog 1-- #include<stdio.h> #include<stdlib.h> int main() { printf("Hello"); /* up to here...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.