Default headers location - gcc

This is a beginners question
I wanted to know where should i locate the gcc headers on a ubuntu distro
I checked the /usr/include folder but nothing there
and i keep on getting gcc error while trying to include stdio.h header
Thanks
liorsolomonAsked:
Who is Participating?
 
GranModCommented:
Closed, 125 points refunded.
GranMod
The Experts Exchange
Community Support Moderator of all Ages
0
 
sjm_eeCommented:
Please port the relevant part of your source and the command line you are using to try to compile and the error message.
0
 
liorsolomonAuthor Commented:
just a sample code:

#include <stdio.h>

int main(){

             char bell = '\\a';
             printf ("gring!%c\\n",bell);
}

command line:
gcc bell.c -o bell

bell.c:1:19: error: stdio.h: No such file or directory
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
brettmjohnsonCommented:
/usr/include is the default location.  How did you install gcc?
Where is it installed?  What does the command 'which gcc' return?
0
 
liorsolomonAuthor Commented:
well i figured it out already
the issue was that i installed basic ubuntu distro and gcc was already installed
but the libc-dev wasn't
i just added it and now i have all the missing files
thanks anyway
0
 
Duncan RoeSoftware DeveloperCommented:
Post in the community support area asking for a refund
0
 
liorsolomonAuthor Commented:
can you give me please the link to the community support area?
I just post a message asking for refund?
0
 
Duncan RoeSoftware DeveloperCommented:
All topics / Community Support
0
 
Prashant SabnekarAVPCommented:
Dear,
simply locate for file stdio.h, in Red Hat Linux it is done with locate command, (# locate filename )
search for similar command in Ubuntu linux, then update your make file.

All the best
S.Prashant Sabnekar
0
 
Duncan RoeSoftware DeveloperCommented:
Prashant - look at the comments above. He already fixed it for himself (hadn't installed glibc-devel). I say refund his points.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.