sumotoy / RA8875

A library for RAiO RA8875 display driver for Teensy3.x or LC/Arduino's/Energia/Spark
GNU General Public License v3.0
79 stars 55 forks source link

Update problem. #153

Closed hhenk1299 closed 3 years ago

hhenk1299 commented 3 years ago

Hi,

Last night I updated some Adafruit libraries, like RA8875 and Adafruit_GFX. Since the update I get following errors. I do not have a clue where to look for a solution. Previously I did not get these errors. Thanks in advance.

Arduino:1.8.15 (Mac OS X), Board:"Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from /Users/hd/Documents/Arduino/VE.Direct 7/VE.Direct_7scherm_25/VE.Direct_7scherm_25.ino:54:0: /Users/hd/Documents/Arduino/libraries/Adafruit_GFX/Adafruit_GFX.h:11:20: error: expected unqualified-id before '{' token

define swap(a, b) { int16_t t = a; a = b; b = t; }

                ^

/Users/hd/Documents/Arduino/libraries/Adafruit_RA8875/Adafruit_RA8875.h:290:8: note: in expansion of macro 'swap' void swap(int16_t &x, int16_t &y) { ^~~~ In file included from /Users/hd/Documents/Arduino/VE.Direct 7/VE.Direct_7scherm_25/VE.Direct_7scherm_25.ino:55:0: /Users/hd/Documents/Arduino/libraries/Adafruit_RA8875/Adafruit_RA8875.h:290:37: error: expected unqualified-id before '{' token void swap(int16_t &x, int16_t &y) { ^

hhenk1299 commented 3 years ago

How stupid. The solution was to remove older libraries from the library folder.