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]

why i can't link my lib


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


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