[ECOS] cyg_user_start() in a library
Andrew Lunn
andrew.lunn@ascom.ch
Tue Jul 30 00:05:00 GMT 2002
> 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
More information about the Ecos-discuss
mailing list