|
发表于 2007-5-14 17:50:08
|
显示全部楼层
Post by 伟大的男人
我的程序mske后提示的错误,但是这些变量已经在一个头文件里定义过了,而且头文件也加进去了,怎么会出现这样的错误呢?希望大侠们帮帮忙。谢谢!
endH8.o(.text+0xbe): In function `send_h8':
: undefined reference to `gblStatusData'
sendH8.o(.text+0xd2): In function `send_h8':
: undefined reference to `gblStatusDataPrev'
sendH8.o(.text+0xf8): In function `send_h8':
: undefined reference to `b8_old'
sendH8.o(.text+0x10c): In function `send_h8':
: undefined reference to `b8_new'
sendH8.o(.text+0x120): In function `send_h8':
: undefined reference to `b9_old'
sendH8.o(.text+0x134): In function `send_h8':
: undefined reference to `b9_new'
sendH8.o(.text+0x148): In function `send_h8':
: undefined reference to `ba_old'
sendH8.o(.text+0x15c): In function `send_h8':
: undefined reference to `ba_new'
sendH8.o(.text+0x170): In function `send_h8':
: undefined reference to `bb_old'
sendH8.o(.text+0x184): In function `send_h8':
: undefined reference to `bb_new'
sendH8.o(.text+0x198): In function `send_h8':
: undefined reference to `bc_old'
sendH8.o(.text+0x1ac): In function `send_h8':
: undefined reference to `bc_new'
sendH8.o(.text+0x1ba): In function `send_h8':
: undefined reference to `gblCounter'
sendH8.o(.text+0x1c1): In function `send_h8':
: undefined reference to `gblCounter'
这个错误消息是说你没有指定要连接的那个库,而不是没有包含相应的头文件 |
|