nseidle/OpenLog — Issue #88: Firmware won't compile
Author: Cupboard
Created: 2012-01-11 11:15:38+00:00
State: open

when I try and compile firmware for the OpenLog, whether modified or as downloaded, it throws an error, below.
The IDE highlights line 294 in SdFat.h:
"void write(uint8_t b);"

I have a separate version of Arduino V1.0 and I've replaced the hardwareserial bits.

In file included from OpenLog_v2.cpp:222:
/SdFatUtil.h:26:22: error: WProgram.h: No such file or directory
In file included from OpenLog_v2.cpp:221:
SdFat.h:293: error: conflicting return type specified for 'virtual void SdFile::write(uint8_t)'
D:\arduino-ol\hardware\arduino\cores\arduino/Print.h:48: error: overriding 'virtual size_t Print::write(uint8_t)'
In file included from OpenLog_v2.cpp:222:
/SdFatUtil.h: In function 'void SerialPrint_P(const prog_char*)':
SdFatUtil.h:57: error: 'Serial' was not declared in this scope
/SdFatUtil.h: In function 'void SerialPrintln_P(const prog_char*)':
SdFatUtil.h:67: error: 'Serial' was not declared in this scope
In file included from D:\arduino-ol\hardware\arduino\cores\arduino/Arduino.h:192,
from OpenLog_v2.cpp:254:
D:\arduino-ol\hardware\arduino\cores\arduino/HardwareSerial.h: At global scope:
D:\arduino-ol\hardware\arduino\cores\arduino/HardwareSerial.h:52: error: conflicting return type specified for 'virtual void HardwareSerial::write(uint8_t)'
D:\arduino-ol\hardware\arduino\cores\arduino/Print.h:48: error: overriding 'virtual size_t Print::write(uint8_t)'