header files (.h) and dinamic linked librarys

This is a discussion on header files (.h) and dinamic linked librarys within the Linux Programming forums, part of the Platform Specific Boards category; Is there some convention or rule to know what library I need link with my program when I'm unig a ...

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    3

    Question header files (.h) and dinamic linked librarys

    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

  2. #2
    Registered User JasonLikesJava's Avatar
    Join Date
    Mar 2002
    Posts
    175
    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.

  3. #3
    Comment your source code! Lynux-Penguin's Avatar
    Join Date
    Apr 2002
    Posts
    533
    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

  4. #4
    Registered User zahid's Avatar
    Join Date
    Aug 2001
    Posts
    532
    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.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21