MDK5.14软件的安装和破解都是按照原子的文档进行的 ,编译光盘中的跑马灯实验成功,可以运行和下载. 所以KEIL的问题的可能性比较小.
综合实验59项目工程是从光盘拷贝过来,没有修改,编译出现以下错误,有人碰到过吗,帮忙看看.
Build target 'Test'
compiling usart3.c...
..HARDWAREUSART3usart3.c(124): error: #928: incorrect use of va_start
va_start(ap,fmt);
..HARDWAREUSART3usart3.c(124): error: #253: expected a ","
va_start(ap,fmt);
..HARDWAREUSART3usart3.c(124): error: #29: expected an expression
va_start(ap,fmt);
..HARDWAREUSART3usart3.c: 0 warnings, 3 errors
compiling ff.c...
..FATFSsrcff.c(4513): error: #928: incorrect use of va_start
va_start(arp, fmt);
..FATFSsrcff.c(4513): error: #253: expected a ","
va_start(arp, fmt);
..FATFSsrcff.c(4513): error: #29: expected an expression
va_start(arp, fmt);
..FATFSsrcff.c(4543): error: #929: incorrect use of va_arg
p = va_arg(arp, TCHAR*);
..FATFSsrcff.c(4552): error: #929: incorrect use of va_arg
putc_bfd(&pb, (TCHAR)va_arg(arp, int)); continue;
..FATFSsrcff.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));
..FATFSsrcff.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));
..FATFSsrcff.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));
..FATFSsrcff.c: 0 warnings, 8 errors
compiling bitstreamf.c...
..AUDIOCODECflacflacdecitstreamf.c(31): error: #5: cannot open source input file "stdbool.h": No such file or directory
#include <stdbool.h>
..AUDIOCODECflacflacdecitstreamf.c: 0 warnings, 1 error
compiling flacdecoder.c...
..AUDIOCODECflacflacdecflacdecoder.c(35): error: #5: cannot open source input file "stdbool.h": No such file or directory
#include <stdbool.h>
..AUDIOCODECflacflacdecflacdecoder.c: 0 warnings, 1 error
"..OBJTEST.axf" - 13 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:09
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
是否你的MDK软件有问题,我能正常编译。
一周热门 更多>