跪求帮忙:
我用下面的编译命令编译server1
其中MQ.c 调用了IBM MQ的API (/usr/mqm/lib/libmqm.a), public.c调用了公用库函数(/home/ias/lib/libcfunc.a)
/home/bea/src/poctux>buildserver -v -o server1 -s TCCBTRS -s ZJYWTRS -f main.c -f config.c -f MQ.c -f public.c -f "-L/home/ias/lib/ -lcfunc" -f "-L/usr/mqm/lib -lmqm"
cc -q64 -D_LARGE_FILES -D__XCOFF32__ -D__XCOFF64__ -brtl -qstaticinline -I$TUXDIR/include -o server1 BS-52094.c -L${TUXDIR}/lib main.c config.c MQ.c public.c -L/home/ias/lib/ -lcfunc -L/usr/mqm/lib -lmqm -brtl -qstaticinline -ltux -lbuft -lfml -lfml32 -lengine -lpthread
BS-52094.c:
main.c:
config.c:
MQ.c:
"MQ.c", line 141.36: 1506-280 (W) Function argument assignment between types "int*" and "long*" is not allowed.
public.c:
ld: 0711-317 ERROR: Undefined symbol: .trim_blank
ld: 0711-317 ERROR: Undefined symbol: .MQPUT
ld: 0711-317 ERROR: Undefined symbol: .MQGET
ld: 0711-317 ERROR: Undefined symbol: .MQCLOSE
ld: 0711-317 ERROR: Undefined symbol: .MQDISC
ld: 0711-317 ERROR: Undefined symbol: .MQCONN
ld: 0711-317 ERROR: Undefined symbol: .MQOPEN
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
CMDTUX_CAT:1832: ERROR: can't execute cc -q64 -D_LARGE_FILES -D__XCOFF32__ -D__XCOFF64__ -brtl -qstaticinline -I$TUXDIR/include -o server1 BS-52094.c -L${TUXDIR}/lib main.c config.c MQ.c public.c -L/home/ias/lib/ -lcfunc -L/usr/mqm/lib -lmqm -brtl -qstaticinline -ltux -lbuft -lfml -lfml32 -lengine -lpthread
就是报错,这些库函数没定义,跪求解决方案
--转自