+ Post New Thread
Results 1 to 2 of 2
  1. #1
    Member level 5
    Points: 1,933, Level: 10
    Achievements:
    7 years registered

    Join Date
    May 2010
    Location
    Duisburg, Germany
    Posts
    81
    Helped
    0 / 0
    Points
    1,933
    Level
    10

    Our header files are static or dynamic library

    Hi Everyone,

    when we create own headers, for istance, math,c and math.h.
    When we include them, does compiler make them shared or static library.
    Thank you

    project :
    main.c
    math.c
    math.h

    Best regards

    •   AltAdvertisement

        
       

  2. #2
    Advanced Member level 5
    Points: 12,521, Level: 26
    Achievements:
    7 years registered

    Join Date
    Apr 2010
    Posts
    1,902
    Helped
    405 / 405
    Points
    12,521
    Level
    26

    Re: Our header files are static or dynamic library

    Quote Originally Posted by spartekus View Post
    Hi Everyone,

    when we create own headers, for istance, math,c and math.h.
    When we include them, does compiler make them shared or static library.
    Thank you

    project :
    main.c
    math.c
    math.h

    Best regards
    static or dynamic does not arise when you include math.c and main.c, compiled together to make an executable.

    'library' results only when you dont call the 'main' or equivalent.



--[[ ]]--