LinuxSir.cn,穿越时空的Linuxsir!

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

温度传感器18b20在ARM7上的驱动编译问题..请高手指教啊

[复制链接]
发表于 2009-11-11 18:16:39 | 显示全部楼层 |阅读模式
原程序编译问题出现
arm-elf-gcc: ds18b20.o: ?????????
ds18b20.c:167: parse error before `DS18B20_init'
ds18b20.c:182: parse error before `DS18B20_exit'
ds18b20.c:190: warning: parameter names (without types) in function declaration
ds18b20.c:190: warning: data definition has no type or storage class
ds18b20.c:191: warning: parameter names (without types) in function declaration
ds18b20.c:191: warning: data definition has no type or storage class
make: *** [all] Error 1

makefile文件如下:
        CC=arm-elf-gcc
        OBJS=ds18b20.o
        SOCS=ds18b20.c
        LD=arm-elf-gcc
        LDFLAGS= -DMODULE -D __KERNEL__ -D __linux__  -I/home/wang/ulinux/uClinux-dist/linux-2.4.x/include -fno-builtin  -c  
all:
        $(CC) -O $(OBJS) $(LDFLAGS) $(SOCS)
        cp $(OBJS) /home/wang/armdriver/ds18b20.o
        clean:  -rm -f $(EXEC) *.elf  *.gdb  *.o


不知是什么问题,以前编译都通过了的,现在不行了,很郁闷!!哪位高手来帮小弟一把
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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