在FATFS例程上加入了自己的图像处理算法,因为算法是C++写的,所有将所有例程中的源文件也改为C++。源文件中所有printf都注释掉,编译是报错:
..SYSTEMusartusart.cpp(33): warning: #2681-D: name linkage conflicts with previous declaration of variable "std::__stdout" (declared at line 138 of "C:Keil_v5ARMARMCCBin..includestdio.h")
FILE __stdout;
..SYSTEMusartusart.cpp(33): error: #70: incomplete type is not allowed
FILE __stdout;
..SYSTEMusartusart.cpp(40): error: #734: function "fputc(int, std::FILE *)" conflicts with using-declaration of function "std::fputc(int, std::FILE *) C"
int fputc(int ch, FILE *f)
麻烦各位大神指点一下 |