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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
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
brettmjohnsonCommented:
/usr/include is the default location.  How did you install gcc?
Where is it installed?  What does the command 'which gcc' return?
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

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
Duncan RoeSoftware DeveloperCommented:
Post in the community support area asking for a refund
liorsolomonAuthor Commented:
can you give me please the link to the community support area?
I just post a message asking for refund?
Duncan RoeSoftware DeveloperCommented:
All topics / Community Support
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
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.
GranModCommented:
Closed, 125 points refunded.
GranMod
The Experts Exchange
Community Support Moderator of all Ages

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux OS Dev

From novice to tech pro — start learning today.