[ECOS] why i can't link my lib
张 亮
johnsonest@hotmail.com
Mon Oct 21 01:38:00 GMT 2002
Dear nickg,
i have a question for you:
in current dir,I have a library namede as "libtest.a",I write a program:
//test lib
#include "test.h"//include lib header file
main()
{
...
}
in my makefile:
test: test.c
gcc -static -g -o test test.c -ltest.a
>make:
ld return 1exit status,can't find -ltest.a
can you help me? where mistaks hidden?
BRs/zhangliang
_________________________________________________________________
ÃÃÃÃÃýçÃÃÃî´óµÃµçÃÃÃüþõó¡ª MSN Hotmail¡£ http://www.hotmail.com
--
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