When you say "My function and class declarations are in header files . . ."
do you mean declarations only or also the code? Code is normally put in
seperate .c files.
simple .a lib files are made by compiling your functions with a -c flag to
produce one or more .o files. these can be then archived together using the
'ar' utility. name the lib file with a name like lib<libFileName>.a and
place it in you default lib dir.
Elf libs (.so) files are a little more sophisticated and are necessary if
you are doing dynamic function loading. if you need to produce these send
another another post,
raja
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Mr. Sourangshu Bhattacharya
Sent: Thursday, November 02, 2000 4:55 PM
To: [EMAIL PROTECTED]
Subject: [ilug-cal] Making libraries with gcc
Hi,
I wanted to know how to make libraries using gcc (and ld if needed).
My function and class declarations are in header files and the code is in
.c files.
The master .c file has included all the header files.
Thanks and bye
Sourangshu Bhattacharya
B.E. 4th year, Civil Engg.,
University of Roorkee.
--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/help/faq_list.html
--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/help/faq_list.html