[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] shared option does not work?
From: |
Mudiaga Obada |
Subject: |
Re: [avr-gcc-list] shared option does not work? |
Date: |
Mon, 21 Feb 2005 02:04:43 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b) Gecko/20050217 |
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] shared option does not work?, Jim Davis, 2005/02/18
- RE: [avr-gcc-list] shared option does not work?, Jim Davis, 2005/02/20
- Re: [avr-gcc-list] shared option does not work?, Daniel O'Connor, 2005/02/21
- Re: [avr-gcc-list] shared option does not work?, Paul Colin Gloster, 2005/02/22
- Re: [avr-gcc-list] shared option does not work?, Daniel O'Connor, 2005/02/22