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?...
- 02-09-2009 #1Just Joined!
- Join Date
- Sep 2008
- Posts
- 88
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
- 02-09-2009 #2
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!"
- 02-09-2009 #3Just Joined!
- Join Date
- Sep 2008
- Posts
- 88
header files
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?
- 02-09-2009 #4
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.
- 02-10-2009 #5
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!"
- 02-15-2009 #6Just Joined!
- Join Date
- Sep 2008
- Posts
- 88
found them...! Thanks.


Reply With Quote
