Hello,
I know how to make a header file in C when using turbo c/c++ (had done it long time ago when i was using Windows xp) now i am using windows 7 with Gcc (DJGPP ) . But now i dont know how to make a lib file and header file.
I am guessing is this what i should do? If i am wrong please do rectify me.
(the sqaured.c file of the function that i am taking as an example to make a header)
i compiled it with this command and made a .o file(object file )Code:float squared(float s_input) ( float s_output; s_output=s_input*s_input; return(s_output); }gcc -c squared.ci go the object file.
now how to make a lib file and insert this object in that library file and make a header file with the prototypes of the function?
Idk if this is the right method. cuz i read somewhere that to make a lib file we need the obj file of the c file



4Likes
LinkBack URL
About LinkBacks



