学前班
最后登录1970-1-1
在线时间 小时
注册时间2017-9-1
|
错误的地方为: va_start(arp, fmt);
p = va_arg(arp, TCHAR*);
putc_bfd(&pb, (TCHAR)va_arg(arp, int)); continue;
v = (f & 4) ? (DWORD)va_arg(arp, long) : ((d == 'D') ? (DWORD)(long)va_arg(arp, int) : (DWORD)va_arg(arp, unsigned int));
错误报表:
*** Using Compiler 'V5.05 update 2 (build 169)', folder: 'D:\keil5\ARM\ARMCC\Bin'
Build target 'fatfs'
compiling ff.c...
..\..\User\FATFS\ff.c(4596): error: #928: incorrect use of va_start
a_start(arp, fmt);
..\..\User\FATFS\ff.c(4596): error: #253: expected a ","
a_start(arp, fmt);
..\..\User\FATFS\ff.c(4596): error: #29: expected an expression
a_start(arp, fmt);
..\..\User\FATFS\ff.c(4626): error: #929: incorrect use of va_arg
p =
a_arg(arp, TCHAR*);
..\..\User\FATFS\ff.c(4635): error: #929: incorrect use of va_arg
putc_bfd(&pb, (TCHAR)
a_arg(arp, int)); continue;
..\..\User\FATFS\ff.c(4650): error: #929: incorrect use of va_arg
v = (f & 4) ? (DWORD)
a_arg(arp, long) : ((d == 'D') ? (DWORD)(long)va_arg(arp, int) : (DWORD)va_arg(arp, unsigned int));
..\..\User\FATFS\ff.c(4650): error: #929: incorrect use of va_arg
v = (f & 4) ? (DWORD)
a_arg(arp, long) : ((d == 'D') ? (DWORD)(long)
a_arg(arp, int) : (DWORD)va_arg(arp, unsigned int));
..\..\User\FATFS\ff.c(4650): error: #929: incorrect use of va_arg
v = (f & 4) ? (DWORD)
a_arg(arp, long) : ((d == 'D') ? (DWORD)(long)
a_arg(arp, int) : (DWORD)
a_arg(arp, unsigned int));
..\..\User\FATFS\ff.c: 0 warnings, 8 errors
"..\..\Output\Template.axf" - 8 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:02
|
|