LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 537|回复: 4

大侠们看看这个问题!谢谢!

[复制链接]
发表于 2007-5-14 13:29:46 | 显示全部楼层 |阅读模式
我的程序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'
发表于 2007-5-14 14:14:41 | 显示全部楼层
先 rm 掉所有的 .o 文件,再 make 呢?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-5-14 14:55:34 | 显示全部楼层
谢谢楼上的,这个已经试过了,不行
回复 支持 反对

使用道具 举报

发表于 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'


这个错误消息是说你没有指定要连接的那个库,而不是没有包含相应的头文件
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-5-14 17:56:51 | 显示全部楼层
谢谢!!
那是不是跟makefile有关系?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表