Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Question Location of the standard library files

    Hi All,

    I am trying to figure our where my gcc standard library files are located.
    When i use the #include <filename> preprocessor directive at the top of my little program; the computer goes off and uses these files. It all works, but I just dont know where thes files are kept.

    Can anyone help? I am running Fedora Core 5 with a standard build that includes development tools.

    thanks so much for your help

  2. #2
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Seattle, WA, USA
    You may want to check under the:

    /usr/lib/gcc/<type of gcc>/<version of gcc>/

    directory. I don't know C, but my C++ header files are stored at:


    Some exploring in that area may help.

  3. #3
    Hi and thanks for that. I was actually hoping to find the header files. I asked for the wrong thing by asking for the std library. sorry... i am a bit of a newb..... I had a look around and managed to find the headers under /usr/include/. anyway... thanks for answering my post...

  4. $spacer_open
  5. #4
    Linux User
    Join Date
    Aug 2005
    Well... all header files should located in /usr/include/ and /usr/local/include... other paths (as said before) may be used, especially for standard libraries.

    However you specify additional paths using the -L switch when compiling the source.
    When using Windows, have you ever told "Ehi... do your business?"
    Linux user #396597 (

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts