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
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
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.
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.
Asking the right question is sometimes more important than knowing the answer.
Please read the FAQ
C Reference Card (A MUST!)
Pointers and Memory
The Essentials
CString lib
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.
[ Never code before desk work ]
-------------------------------------:-->
A man who fears Nothing is the man who Loves Nothing
If you Love Nothing, what joy is there in your life.
=------------------------------------------------------= - I may be wrong.