[i=s] 本帖最后由 墨lgq 于 2012-4-23 21:28 编辑 [/i]
[root@localhost src]# make
make[1]: Entering directory `/mnt/share/phone_bank/src/libutil'
make[1]: Leaving directory `/mnt/share/phone_bank/src/libutil'
make[1]: Entering directory `/mnt/share/phone_bank/src/accmanage'
make[1]: Leaving directory `/mnt/share/phone_bank/src/accmanage'
make[1]: Entering directory `/mnt/share/phone_bank/src/console'
gcc -Wall -pipe -g -c -I../../src/include -I. console.c -o console.o
ar cr ../../lib/libconsole.a console.o
make[1]: Leaving directory `/mnt/share/phone_bank/src/console'
make: Warning: File `../lib/libconsole.a' has modification time 0.042 s in the future
gcc -Wall -pipe -g ../lib/libaccmanage.a ../lib/libconsole.a main.o -o ../src/run -L../lib -lutil -laccmanage -lconsole
../lib/libconsole.a(console.o):(.rodata+0x1a0): undefined reference to `accmanage'
../lib/libconsole.a(console.o):(.rodata+0x1c8): undefined reference to `accmanage'
../lib/libconsole.a(console.o):(.rodata+0x1f0): undefined reference to `accmanage'
collect2: ld 返回 1
make: *** [../src/run] 错误 1
各位大神看看这是什么问题啊???
larmbr 于 2012-05-04 14:53:20发表:
感谢分享,学习了,谢谢!!!
comsiongod 于 2012-04-25 10:36:29发表:
新手上手 学习学习
墨lgq 于 2012-04-21 21:24:20发表:
可以了,不过这是为什么呢?
绿色圣光 于 2012-04-18 19:28:40发表:
把 -laccmanage 调整到 -lconsole 的后面试试。还有前面那个.a的。