Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

gcc - missing headers and libraries

Posted on 2000-04-03
1
Medium Priority
?
351 Views
Last Modified: 2010-04-21
These ought to be easy for those familiar with gcc :)

if I try to compile:

#include <stdio.h>
int main()
{
puts("Hello world\n");
return 0;
}

gcc reports:

test.cpp: stdio.h: File or directory not found.

Then I tried to exclude the dependency on the header file:

int main()
{
return 0;
}



and gcc seems to compile but does not link:

/usr/bin/ld: cannot open crt1.o: File or directory not found

From / I search:
find -name crt1.o
and
find -name stdio.h
and the files are not found.

So, my questions are:

1) Which RPM contains the headers and libraries?

2) What would ba a "standard" place to put these?

3) What is the most straightforward way to inform gcc of their location, other than options or makefiles? Is there an environment variable I can set for each?
0
Comment
Question by:Remote040300
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 40

Accepted Solution

by:
jlevie earned 150 total points
ID: 2687997
The include files should be in /usr/include and the libs would be in /usr/lib. On a Linux system these should have been installed by default if your installation was done in a way as to select a "workstation" type of install. If you did some sort of custom install where you picked only what you thought you needed, then you need to go back and install the "developers" support items. Using a Gui package manager, like kpackage or gnorpm, will make it easier to figure out what else needs to be added.
0

Featured Post

Stack Overflow Podcast - Developer Story

Welcome to the Stack Overflow podcast recorded Thursday July 20 at Stack Overflow Headquearters in NYC. Your hosts today are podcast regulars Jay Hanlon, David Fullerton, and Ilana Yitzhaki, plus the quite irregular Matt Sherman (Stack Overflow Engineering Manager extraordinaire)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question