This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: how to build a driver to a single library


On Tue, Jul 19, 2005 at 09:01:28AM +0800, Tianjun - zdk wrote:
> Hi,Andrew 
> 
>   so i should not to linked the library to extras.o?
> and just to generate a libarery mylib.a use my favourite name?
> and then use this command to link it in my Application
> 
> 	compile  -lmylib mylib.a application.c
> 
>   can this working?

There is no need to link your library to extras.o. Just link your
application with the library as normal, eg something like

    arm-elf-gcc -o foobar application.o -lmylib -nostartfiles  -Ttarget.ld

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]