Build target 'Test'
compiling usart3.c...
..\HARDWARE\USART3\usart3.c(124): error: #928: incorrect use of va_start
va_start(ap,fmt);
..\HARDWARE\USART3\usart3.c(124): error: #253: expected a ","
va_start(ap,fmt);
..\HARDWARE\USART3\usart3.c(124): error: #29: expected an expression
va_start(ap,fmt);
..\HARDWARE\USART3\usart3.c: 0 warnings, 3 errors
compiling ff.c...
..\FATFS\src\ff.c(4513): error: #928: incorrect use of va_start
va_start(arp, fmt);
..\FATFS\src\ff.c(4513): error: #253: expected a ","
va_start(arp, fmt);
..\FATFS\src\ff.c(4513): error: #29: expected an expression
va_start(arp, fmt);
..\FATFS\src\ff.c(4543): error: #929: incorrect use of va_arg
p = va_arg(arp, TCHAR*);
..\FATFS\src\ff.c(4552): error: #929: incorrect use of va_arg
putc_bfd(&pb, (TCHAR)va_arg(arp, int)); continue;
..\FATFS\src\ff.c(4567): error: #929: incorrect use of va_arg
v = (f & 4) ? (DWORD)va_arg(arp, long) : ((d == 'D') ? (DWORD)(long)va_arg(arp, int) : (DWORD)va_arg(arp, unsigned int));
..\FATFS\src\ff.c(4567): error: #929: incorrect use of va_arg
v = (f & 4) ? (DWORD)va_arg(arp, long) : ((d == 'D') ? (DWORD)(long)va_arg(arp, int) : (DWORD)va_arg(arp, unsigned int));
..\FATFS\src\ff.c(4567): error: #929: incorrect use of va_arg
v = (f & 4) ? (DWORD)va_arg(arp, long) : ((d == 'D') ? (DWORD)(long)va_arg(arp, int) : (DWORD)va_arg(arp, unsigned int));
..\FATFS\src\ff.c: 0 warnings, 8 errors
compiling bitstreamf.c...
..\AUDIOCODEC\flac\flacdec\bitstreamf.c(31): error: #5: cannot open source input file "stdbool.h": No such file or directory
#include
..\AUDIOCODEC\flac\flacdec\bitstreamf.c: 0 warnings, 1 error
compiling flacdecoder.c...
..\AUDIOCODEC\flac\flacdec\flacdecoder.c(35): error: #5: cannot open source input file "stdbool.h": No such file or directory
#include
..\AUDIOCODEC\flac\flacdec\flacdecoder.c: 0 warnings, 1 error
"..\OBJ\TEST.axf" - 13 Error(s), 0 Warning(s).
Target not created.
解决方法:
原因 是ADS1.2和MDK的冲突导致。
卸载ADS1.2、删除其环境变量
变量名:ARMCC5LIB
变量值 :D:\Keil\ARM\ARMCC\lib
重启电脑!一定要重启电脑!
阅读(3076) | 评论(0) | 转发(0) |