Find the answer to your Linux question:
Results 1 to 6 of 6
can anyone please send me a list of as-many-as-possible header files for C programmng lang' [via mail::"mikesurgeon@yahoo.co.uk"] with details on what each header is responsible for?...
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Posts
    88

    Post header files

    can anyone please send me a list of as-many-as-possible header files for C programmng lang' [via mail::"mikesurgeon@yahoo.co.uk"] with details on what each header is responsible for?
    Last edited by njuguna; 02-09-2009 at 08:16 AM. Reason: wrong title; correcting mail address

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955
    The way header files work in Linux is that each library comes in two halves. One is called libwhatsit and contains the actual code: this is needed to run programs that use the library. The other is called libwhatsit-dev or libwhatsit-devel (depending on your distro) and is needed in addition if you are compiling from source. Typically these development packages contain the headers (which go into /usr/include) and documentation for programmers.

    The most important development packages - those for libc and libgtk - are often included in a larger package with a name like build-essential. If you are interested in that sort of thing, it's worth installing this and then browsing around /usr/include to see what you can find.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  3. #3
    Just Joined!
    Join Date
    Sep 2008
    Posts
    88

    Post header files

    Quote Originally Posted by hazel View Post
    The way header files work in Linux is that each library comes in two halves. One is called libwhatsit and contains the actual code: this is needed to run programs that use the library. The other is called libwhatsit-dev or libwhatsit-devel (depending on your distro) and is needed in addition if you are compiling from source. Typically these development packages contain the headers (which go into /usr/include) and documentation for programmers.

    The most important development packages - those for libc and libgtk - are often included in a larger package with a name like build-essential. If you are interested in that sort of thing, it's worth installing this and then browsing around /usr/include to see what you can find.
    Hazel, please elaborate '...library comes in two halves...libwhatis...libwhatsit-devel...'?
    Can you send me via mail {mikesurgeon@yahoo.co.uk} a list of header files that I can understand and use {considering am a learning to program} for C language?
    Why does this happen...? When I write simple programs [like a prog to handle passenger bus traffic] in Kdevelop it does not compile with the "compile file" option nor the command "gcc program.c -o program, but when I copy-paste the code in another editor and compile it in the konsole, it does work?

  4. #4
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    You should not include your email address in posts! or if you do write it in a non usable manner like myname at myisp. This way the bots will not get it and it will reduce your junk email

    Now what headers are you interested in? There are standard header for C and C++. There are headers for the kernel. There are headers for Xwindows and each of the GUI's. Each library will have its own set of headers. And each program may have it's own header files along with using those above. What header files to use are is in context with what features you want your program to tap into from the Libraries, kernel, and GUI environment. There is no way anyone can give you a list since it all depends on what you want to do. There tens (maybe hundreds) of thousands of different header files. I have 6920 on my machine and I'm not even doing any Linux development. Look in /usr/include/ for all the examples you could wish for.

    Without knowing what errors you receive in kdevlop. no one can help.

  5. #5
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955
    I've never used Kdevelop so I can't help you there but if you can compile your program in a konsole, you obviously have all the headers you need already installed.

    It might be worth looking in Kdevelop's configuration dialog to see what command is actually executed when you choose the "compile file" option. If you are using any functions that come from libraries other than the standard C library (glibc), you need to make sure those libraries are included in the compilation.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  6. #6
    Just Joined!
    Join Date
    Sep 2008
    Posts
    88

    Talking

    found them...! Thanks.

Posting Permissions

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