Do you know how to create a library file?

CC111310 CC111310@ntu.ac.uk
Tue Feb 5 03:18:00 GMT 2002


Hi,
I'm hoping that somebody out there knows how to create a lib (i.e. .a file).
I'm having problems linking the files I've compiled.  I've got c , cpp and s
files compiled to object files using gcc (for strongarm processor) and then
I use arm-strongarm-coff-ld program to link the object files together.  When
I link the files without the cpp files and with the libgcc.a and another old
libSA110gnuvx.a file, everything works.  But when I add the cpp files, there
are many multiple declarations error and undefine symbol errors.  I think I
need to create a new lib file that has the necessary functions that i need
(and remove the functions that i don't use).  Please correct me if I'm
wrong.  Help.  Thank you very much in advance.

Regards,
CC111310.
P/s Can you reply to my question directly to this email address, I'm not
sure if i can read mails from the mailling list.  Thanks.



More information about the Gcc-help mailing list