| Senior Member with 869 posts. | | Join Date: Nov 2005 Location: Down Under! Experience: Enough | |
Quote: |
Originally Posted by AGCurry This is a common confusion in C programming.
The library is NOT the same as the header (.h) file. C libraries are collections of compiled objects which are LINKED to your object code by the linker. Header files are lexically included by the preprocessor.
When you compile, you need to make sure that the libraries are where they're supposed to be AND the header files (INCLUDE=...) are where they're supposed to be. Either one can mess you up. | Thats just the tip of the iceberg, because header files can contain refrences to multiple libraries, by including other header files in it. A good example is the windows.h header, which actually includes other header files like winuser.h
Trying to find out what library you need can be a mess, your best bet is to download the full Development kit that contains all the headers/libraries. Otherwise it's like finding a needle in the haystack.
__________________ Windows XP: 64-bit wanna-be OS with a 32-bit graphical shell for 16-bit extensions of a 8-bit patch to an 4-bit operating system originally coded for a 2-bit microprocessor, written by a company that can't stand 1 bit of competition. |