avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] shared option does not work?


From: Jim Davis
Subject: RE: [avr-gcc-list] shared option does not work?
Date: Sun, 20 Feb 2005 18:10:02 -0800

Yes you are right.  Im on the right track now...  Thanks all.

Danke

> >-----Original Message-----
> >From: address@hidden
> >[mailto:address@hidden Behalf Of
> >Mudiaga Obada
> >Sent: Sunday, February 20, 2005 5:05 PM
> >To: address@hidden
> >Subject: Re: [avr-gcc-list] shared option does not work?
> >
> >
> >
> >I believe J"orge already pointed you in the right direction with
> >avr-ar. The 'ar' object librarian under unix is similar to lib under DOS.
> >
> >Here's what you could do:
> >
> >1) create a static library
> >#> avr-ar -rc   libnewlib.a   obj1.o obj2.o ... objn.o
> >
> >2) link with library (for quick results)
> >#> avr-gcc -o prog  prog.o libnewlib.a
> >
> >or 2b) link with library (the usual POSIX way)
> >#> avr-gcc -o prog prog.o -L . -l newlib
> >
> >Please refer to the ar and gcc manuals for details, or consult your
> >nearest unix guru or book.
> >
> >Mit freundlichen Gruessen,
> >
> >Mudiaga Obada
> >
> >
> >Jim Davis wrote:
> >>
> >> Ok, so maybe I dont want shared option... I dont want to
> >implement a shared
> >> loader.
> >> I just want to link and produce a linkable library - (static?) that at
> >> compile time
> >> I can link in other projects.  The library would not have a
> >main routine.
> >> It would
> >> be similar to any standard library package.
> >>
> >> Surely this compiler allows for library creation for this purpose.
> >> Otherwise I
> >> have to specify in the link about 3 dozen .o files that are part of
> >> proprietary
> >> library code.
> >>
> >> Im new to this environment, so maybe you could help with what
> >-Wl means?
> >>
> >> Thanks
> >>
> >
> >....
> >
> >>>>
> >>>>My guess is you don't know what you're trying to do here, and rather
> >>>>seek for the avr-ar utility instead.
> >>>>
> >>>>--
> >>>>cheers, J"org
> >>
> >
> >
> >
> >_______________________________________________
> >AVR-GCC-list mailing list
> >address@hidden
> >http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
> >





reply via email to

[Prev in Thread] Current Thread [Next in Thread]