Our header files are static or dynamic library

Status
Not open for further replies.

spartekus

Member level 5
Joined
May 27, 2010
Messages
81
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Duisburg, Germany
Activity points
1,918
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
 

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.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…