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

header files

Hi, I need to determine the most common set of system header files under /usr/include that should be included when the Linux OS is initially installed and are used frequently in C/C++ programming such as <math.h>, <stdio.h> etc.  Please teach me a good way to do this.

0
ericmhhui
Asked:
ericmhhui
  • 2
1 Solution
 
Karl Heinz KremerCommented:
You need all the ones that come with glibc and the kernel. It does not make sense to try to find the most frequently used ones, you need all of them.
0
 
ericmhhuiAuthor Commented:
is there a way for me to tell which are the ones that come with glibc and the kernel?
I want to get a list of those files one by one.
0
 
Karl Heinz KremerCommented:
How are you installing your Linux system? If you are creating a distribution yourself, you need to compile glibc, so you should know which header files need to be installed. If you are installing a standard Linux distribution, you should have a package that contains the header files. On a RPM based system the package is very likely named glibc-devel. If you run this command "jrpm -ql glibc-devel", you will get a list of files that are part of this package.

This package should also contain the kernel header files.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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