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.....
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
is highlighted in the "extruder.h" block as well.....
Best Regards Fredrik Sandblom