LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Where to find include files to C? (https://www.linuxquestions.org/questions/programming-9/where-to-find-include-files-to-c-434808/)

henrik9 04-13-2006 10:08 AM

Where to find include files to C?
 
Hi,

I am a beginner programming in C and use the compiler GCC.
My question is: Where do I find include files, eg timer.h, and
how do I know the latest version of the include file?
/Henrik

manishsingh4u 04-13-2006 10:30 AM

Quote:

Originally Posted by henrik9
Where do I find include files

PLease check this directory.
Code:

/usr/include

taylor_venable 04-13-2006 10:41 AM

Quote:

Originally Posted by manishsingh4u
/usr/include

And, depending on how your system is set up: /usr/local/include /usr/X11R6/include. Also, what you're looking for might be in an installation-specific directory, e.g. /usr/local/Mesa/include.

As far as I know, header files typically don't have version numbers, so you only have to worry about big things like the difference between, for example, GTK and GTK2, which each have their own headers.

pdeman2 04-13-2006 11:17 AM

I believe that you can probably use your package management software to make sure you have the latest libraries.

henrik9 04-13-2006 11:20 AM

I mean; how to find include files IF they are not on the computer?
/Henrik

xhi 04-13-2006 11:30 AM

determine the name of the software that they belong to and then ask google, freshmeat, sourceforge, etc, etc


All times are GMT -5. The time now is 07:48 AM.