This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
why i can't link my lib
- From: =?gb2312?B?1cUgwcE=?= <johnsonest at hotmail dot com>
- To: nickg at ecoscentric dot com
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Mon, 21 Oct 2002 16:38:50 +0800
- Subject: [ECOS] why i can't link my lib
- Bcc:
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