|
原程序编译问题出现
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
不知是什么问题,以前编译都通过了的,现在不行了,很郁闷!!哪位高手来帮小弟一把 |
|