ErikZalm/Marlin — Issue #23: Error Compiling
Author: geoffd123
Created: 2011-11-29 22:46:03+00:00
State: open

Hi,

I cloned the current repository for Marlin_v1, setup Arduino 0022 with Sanguino and when I try to compile I get the following errors, any ideas what I need to do to fix it?

Geoff

In file included from Marlin.h:11,
from EEPROMwrite.h:4,
from Marlin.cpp:30:
MarlinSerial.h:26:20: error: Stream.h: No such file or directory
In file included from Marlin.h:11,
from EEPROMwrite.h:4,
from Marlin.cpp:30:
MarlinSerial.h:111: error: expected ',' or '...' before '&' token
MarlinSerial.h:111: error: ISO C++ forbids declaration of 'String' with no type
MarlinSerial.h:130: error: expected ',' or '...' before '&' token
MarlinSerial.h:130: error: ISO C++ forbids declaration of 'String' with no type
MarlinSerial.h:122: error: 'BYTE' was not declared in this scope
MarlinSerial.h:123: error: 'BYTE' was not declared in this scope
MarlinSerial.h:124: error: 'DEC' was not declared in this scope
MarlinSerial.h:125: error: 'DEC' was not declared in this scope
MarlinSerial.h:126: error: 'DEC' was not declared in this scope
MarlinSerial.h:127: error: 'DEC' was not declared in this scope
MarlinSerial.h:132: error: 'BYTE' was not declared in this scope
MarlinSerial.h:133: error: 'BYTE' was not declared in this scope
MarlinSerial.h:134: error: 'DEC' was not declared in this scope
MarlinSerial.h:135: error: 'DEC' was not declared in this scope
MarlinSerial.h:136: error: 'DEC' was not declared in this scope
MarlinSerial.h:137: error: 'DEC' was not declared in this scope
MarlinSerial.h: In member function 'void MarlinSerial::print(int)':
MarlinSerial.h:113: error: 's' was not declared in this scope
Marlin.cpp: In function 'void setup()':
Marlin:230: error: call of overloaded 'print(int)' is ambiguous
MarlinSerial.h:112: note: candidates are: void MarlinSerial::print(int)
MarlinSerial.h:119: note: void MarlinSerial::print(const char*)
MarlinSerial.h:123: note: void MarlinSerial::print(char, int)
MarlinSerial.h:124: note: void MarlinSerial::print(unsigned char, int)
MarlinSerial.h:125: note: void MarlinSerial::print(int, int)
MarlinSerial.h:126: note: void MarlinSerial::print(unsigned int, int)
MarlinSerial.h:127: note: void MarlinSerial::print(long int, int)
MarlinSerial.h:128: note: void MarlinSerial::print(long unsigned int, int)
MarlinSerial.h:129: note: void MarlinSerial::print(double, int)
Marlin.cpp: In function 'void process_commands()':
Marlin:666: error: 'sprintf' was not declared in this scope