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: cyg_user_start() in a library


> If instead the command line read:
> 
>     gcc -o app main.o aux.o -L<path> -lmylib -Ttarget.ld
> 
> then if I understand the ld documentation correctly libmylib.a will
> now get searched before libtarget.a, so you should get the behaviour
> you want.

One word of warning. gcc is allowed, and actually does sometimes,
rearrange the order of parameters passed to ld. This has caused me
problems before. To see what is actually happening, add -v to the gcc
command line so you get to see the invocation of ld.

        Andrew

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


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