Delete the folder C:\Users\uyoyo\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc
Restart the Arduino IDE
The problem should now be fixed
This issue is that the latest Arduino AVR core uses a new version of avr-gcc and is incompatible with the previous version. There is a bug with the Arduino IDE that causes installation of Sanguino to install the old compiler version which causes that error. By deleting the old avr-gcc version it forces the Arduino IDE to use the new version that's included with the IDE installation instead.
please help me,the program is not compiling.I downloaded the rc controller program from the internet.
Arduino: 1.5.8 (Windows 7), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
In file included from sketch_jan26b.ino:2:0:
C:\Users\GOKUL\Documents\Arduino\libraries\RF24-master/printf.h:22:26: error: 'FILE' has not been declared
int serial_putc( char c, FILE * )
^
C:\Users\GOKUL\Documents\Arduino\libraries\RF24-master/printf.h: In function 'int serial_putc(char, int*)':
C:\Users\GOKUL\Documents\Arduino\libraries\RF24-master/printf.h:24:3: error: 'Serial' was not declared in this scope
Serial.write( c );
^
C:\Users\GOKUL\Documents\Arduino\libraries\RF24-master/printf.h: In function 'void printf_begin()':
C:\Users\GOKUL\Documents\Arduino\libraries\RF24-master/printf.h:31:29: error: 'fdevopen' was not declared in this scope
fdevopen( &serial_putc, 0 );
^
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Gokulkasi:
please help me,the program is not compiling.I downloaded the rc controller program from the internet.
Arduino: 1.5.8 (Windows 7), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
In file included from sketch_jan26b.ino:2:0:
C:\Users\GOKUL\Documents\Arduino\libraries\RF24-master/printf.h:22:26: error: 'FILE' has not been declared
int serial_putc( char c, FILE * )
^
C:\Users\GOKUL\Documents\Arduino\libraries\RF24-master/printf.h: In function 'int serial_putc(char, int*)':
C:\Users\GOKUL\Documents\Arduino\libraries\RF24-master/printf.h:24:3: error: 'Serial' was not declared in this scope
Serial.write( c );
^
C:\Users\GOKUL\Documents\Arduino\libraries\RF24-master/printf.h: In function 'void printf_begin()':
C:\Users\GOKUL\Documents\Arduino\libraries\RF24-master/printf.h:31:29: error: 'fdevopen' was not declared in this scope
fdevopen( &serial_putc, 0 );
^
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
That has nothing to do with this topic. Please do not hijack threads.
Also, using Arduino IDE 1.5.8? Really? that is a super outdated beta version. The first thing I would try is updating to the current Arduino IDE 1.8.5.