header files (.h) and dinamic linked librarys [Archive] - C Board

PDA

View Full Version : header files (.h) and dinamic linked librarys


whitenoise
05-14-2002, 09:46 AM
Is there some convention or rule to know what library I need link with my program when I'm unig a header file? or better, is there some relationship between headers files and dinamic librarys, that let me know what libs I should to use?

tia

JasonLikesJava
05-14-2002, 10:25 AM
Not that I know of.... after a while you just learn them and don't really need an easy way to know when to include and link what.

Lynux-Penguin
05-15-2002, 05:11 PM
shared libraries (aka so's for shared objects)
contain precompiled data and function information like crypt.so
headerfiles have the written out form of the data but it needs to be grabbed from a file then compiled.
Neither are better than one another because they all have different purposes.

zahid
05-18-2002, 01:32 AM
If you are asking for C then ..
You can check the ANSI standard header files.
Such as

stdio.h
stdlib.h
time.h
..
15 or 17 files... for C

If you are asking for Linux..
You have to check for different packages.. for different features.