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: why i can't link my lib


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


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