This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: why i can't link my lib
- From: Ben Elliston <bje at redhat dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: 21 Oct 2002 19:40:38 +1000
- Subject: [ECOS] Re: why i can't link my lib
- Organization: Red Hat Asia-Pacific Pty Ltd
- References: <F71cQhv0qEn8DN6RwBn00008483@hotmail.com>
>>>>> "johnsonest" == johnsonest <johnsonest@hotmail.com> writes:
johnsonest> test: test.c
johnsonest> gcc -static -g -o test test.c -ltest.a
johnsonest> ld return 1exit status,can't find -ltest.a
Don't use `-ltest.a'. Just use:
gcc -static -g -o test test.c -ltest
Ben
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss