[ECOS] Re: why i can't link my lib

Ben Elliston bje@redhat.com
Mon Oct 21 02:40:00 GMT 2002


>>>>> "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



More information about the Ecos-discuss mailing list