|
|
|
|
 使用自己的静态库,连接出错? - qiyoa [ 2005-03-29 22:58 | 573 byte(s)]
 Re: 使用自己的静态库,连接出错? - qiyoa [ 2005-03-30 11:48 | 109 byte(s)]
 调整A.a和B.a的顺序试试 - r00t [ 2005-03-31 08:54 | 91 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
我修改jtager,里边源文件都编译成了.a形式。
连接的时候,出现了这样
gcc -g -Wall -o jtager main.o md5.o misc.o -lm -lreadline -ltermcap -Lconf -lconf -Lgdbremote -lgdbremote -Lcmdline -lcmdline -Ljtag -ljtag -Lmtd -lmtd -Ltarget -ltarget
gdbremote/libgdbremote.a(gdbremote.o)(.text+0xcbf): In function `writeMem':
/home/qiyao/jtager/src/gdbremote/gdbremote.c:438: undefined reference to `do_memset_block'
这个函数的确在cmdline中定义的啦啊,我在gdbremote.c中也声明了do_memset_block为外部的啊,不知道还有什么地方不对。
|
|
|
[Original]
[Print]
[Top]
|
|
|