用iccavr写的循迹小车程序出错了 不知道怎么改

LPcfANS   2009-6-20 11:17 楼主
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中定义过了 怎么还会出错呢?我该怎么办呢?

回复评论 (3)

把代码拷到别的盘看看。 有些软件路径不能有中文名和空格。
点赞  2009-6-20 13:07
把ICC卸载了从新装一遍试试!不要用中文目录
点赞  2009-6-21 09:50
!ERROR file 'xiaoche.o': undefined symbol '_Turn_left'
!ERROR file 'xiaoche.o': undefined symbol '_left_move'
!ERROR file 'xiaoche.o': undefined symbol '_Turn_right'

看看你的头文件包含全了吗?
点赞  2009-6-24 13:19
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复