|
Post by salman on Dec 26, 2014 9:02:59 GMT -8
I don't know why I am getting these errors. Anybody have any clues?
In file included from logo.ino:3: D:\Program Files (x86)\Arduino\libraries\Gameduino2/GD2.h:335:64: error: missing binary operator before token "l"
|
|
|
Post by jamesbowman on Dec 26, 2014 16:33:23 GMT -8
That is weird ... I just checked the current version of the GD2 libraries: excamera.com/files/Gameduino2.zipagainst 1.0.5 and they seem to be compiling fine. In the current version, there is nothing at line 335 that could cause this error.
|
|
|
Post by jasonharper on Dec 27, 2014 18:09:48 GMT -8
"missing binary operator" is not the error message I'd expect, but GD2.h as it exists on my system definitely has a problem around line 335:
class GDClass { public: void begin(uint8_t options = (GD_CALIBRATE | GD_TRIM | GD_STORAGE));
uint16_t random(); uint16_t random(uint16_t n); uint16_t seed(uint16_t n); int16_t rsin(int16_t r, uint16_t th); int16_t rcos(int16_t r, uint16_t th); void polar(int &x, int &y, int16_t r, uint16_t th); uint16_t atan2(int16_t y, int16_t x);
void copy(const PROGMEM prog_uchar *src, int count); void copyram(byte *src, int count); #if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) l->border); #endif
void self_calibrate(void);
Line 335 is the #if - if either of those symbols is defined, the following nonsensical line results in an error. Those 3 lines can be deleted.
|
|