| 发表于:2007-04-26 17:20:23 楼主 |
我要将自己的代码编译成一个可以执行程序,中间要用到库里面的函数,我在makefile里面也指明了需要链接的库文件,如下所示: obj1 =logininfo.o all: clean login login: $(obj1) $(echo) $(ecc) -l$(libdir) -lpub -lmqm -lmqserver -o $@ $(obj1) $(echo) 编译时候没有报任何错。 可执行程序名也生成了,但是当我运行的时候却报错: could not load program login: symbol resolution failed for /home/ap/cics/lib/libmqm.a(libmqm.o) because: symbol xcsffsts (number 82) is not exported from dependent module /home/ap/cics/lib/libmqmcs.a(shr.o). symbol xcsffst (number 83) is not exported from dependent module /home/ap/cics/lib/libmqmcs.a(shr.o). symbol xcsEXECprogram (number 102) is not exported from dependent module /home/ap/cics/lib/libmqmcs.a(shr.o). symbol xcsallocatequickcellblock (number 122) is not exported from depen dent module /home/ap/cics/lib/libmqmcs.a(shr.o). symbol xcscheckprocess (number 154) is not exported from dependent module /home/ap/cics/lib/libmqmcs.a(shr.o). system error: error 0 我以为是没有包含libmqmcs.a呢,结果加在makefile里面还是一样。 求高手解答,解答。谢谢了^_^ |
|
|
|
|