Many Thanks Daniel ...
Cheers,
Bernard Mentink
On Wednesday, August 6, 2003, at 01:32 AM, Daniel Néri wrote:
Bernard Mentink <[email protected]> writes:
[BRM:C/QF/MSP430] brm% msp430-ar rcv *.o
msp430-ar: Cplus.o: File format not recognized
You (and Dmitry) missed to name the archive:
$ msp430-ar rcv libfoo.a x.o y.o z.o
Typically, you then run msp430-ranlib on the resulting archive. See
the manual for more info:
http://sources.redhat.com/binutils/docs-2.12/binutils.info/ar.html
This archive can then be linked to a program using:
msp430-gcc -o prog.elf other1.o other2.o -lfoo
Is there a special way to compile the object files for inclusion in
a library perhaps?
No, this is not necessary.
Regards,
--Daniel
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/
direct;at.aspnet_072303_01/01
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users