C:\icc\bin\imakew -f xiaoche.mak
iccavr -c -IC:\icc\include\ -e -l -g -Wa-W C:\DOCUME~1\Administrator\MYDOCU~1\小车\xiaoche.c
!W C:\DOCUME~1\Administrator\MYDOCU~1\小车/drv.h(141):[warning] calling function without prototype may cause errors
!W C:\DOCUME~1\Administrator\MYDOCU~1\小车\xiaoche.c(52):[warning] calling function without prototype may cause errors
!W C:\DOCUME~1\Administrator\MYDOCU~1\小车\xiaoche.c(54):[warning] calling function without prototype may cause errors
iccavr -o xiaoche -LC:\icc\lib\ -g -Wl-W -bfunc_lit:0.0x2000 -dram_end:0x25f -bdata:0x60.0x25f -dhwstk_size:16 -fihx_coff -S2 @xiaoche.lk
!ERROR file 'xiaoche.o': undefined symbol '_Turn_left'
!ERROR file 'xiaoche.o': undefined symbol '_left_move'
!ERROR file 'xiaoche.o': undefined symbol '_Turn_right'
!E xiaoche.o(431): Code address 0 already contains a value
!E xiaoche.o(431): Code address 0x1 already contains a value
!E xiaoche.o(455): Code address 0x2 already contains a value
!E xiaoche.o(455): Code address 0x3 already contains a value
!E xiaoche.o(575): Code address 0x4 already contains a value
!E xiaoche.o(575): Code address 0x5 already contains a value
C:\icc\bin\imakew.exe: Error code 1
Done: there are error(s). Exit code: 1
Turn_left()和Turn_right()这些函数我都在drv.h中定义过了 怎么还会出错呢?我该怎么办呢?
把代码拷到别的盘看看。 有些软件路径不能有中文名和空格。
!ERROR file 'xiaoche.o': undefined symbol '_Turn_left'
!ERROR file 'xiaoche.o': undefined symbol '_left_move'
!ERROR file 'xiaoche.o': undefined symbol '_Turn_right'
看看你的头文件包含全了吗?