• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 830
  • Last Modified:

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
0
liorsolomon
Asked:
liorsolomon
1 Solution
 
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
 
brettmjohnsonCommented:
/usr/include is the default location.  How did you install gcc?
Where is it installed?  What does the command 'which gcc' return?
0
Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

 
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
 
GranModCommented:
Closed, 125 points refunded.
GranMod
The Experts Exchange
Community Support Moderator of all Ages
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now