jglauche / reprap-firmware-fork

a fork of the reprap 5D firmware to add Arduino MEGA support
13 stars 6 forks source link

'Serial' was not declared in this scope #1

Open fsandblom opened 13 years ago

fsandblom commented 13 years ago

While trying to upload the FiveD_Gcode_Interperter to my Ardunio (AT mega 1280) I recieve the "error" message "'Serial' was not declared in this scope" with the following lines ( see below):

What am I doing wrong?

In file included from FiveD_GCode_Interpreter.cpp:26: extruder.h: In member function 'void extruder::temperature_error()': extruder.h:104: error: 'Serial' was not declared in this scope FiveD_GCode_Interpreter.cpp: In function 'void setup()': FiveD_GCode_Interpreter:133: error: 'Serial' was not declared in this scope FiveD_GCode_Interpreter.cpp: In function 'bool get_and_do_command()': process_g_code:137: error: 'Serial' was not declared in this scope process_g_code:173: error: 'Serial' was not declared in this scope process_g_code:186: error: 'Serial' was not declared in this scope process_g_code:190: error: 'Serial' was not declared in this scope FiveD_GCode_Interpreter.cpp: In function 'bool process_string(char*, int)': process_g_code:265: error: 'Serial' was not declared in this scope process_g_code:281: error: 'Serial' was not declared in this scope process_g_code:282: error: 'Serial' was not declared in this scope process_g_code:294: error: 'Serial' was not declared in this scope process_g_code:295: error: 'Serial' was not declared in this scope process_g_code:447: error: 'Serial' was not declared in this scope process_g_code:512: error: 'Serial' was not declared in this scope FiveD_GCode_Interpreter.cpp: In function 'void FlushSerialRequestResend()': process_g_code:662: error: 'Serial' was not declared in this scope

The line

  Serial.print("E: ");

is highlighted in the "extruder.h" block as well.....

Best Regards Fredrik Sandblom

jglauche commented 13 years ago

Try with the Arduino 0021 software, the latest one doesn't work.

fsandblom commented 13 years ago

Thanx a milion Joaz! You absolutely rock! Everything uploaded - now I can continue to finalize my Shapercube! :-D