compilation error form thermo.ino

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
fadrangi
 
Posts: 3
Joined: Thu Jul 31, 2014 1:17 am

compilation error form thermo.ino

Post by fadrangi »

when I compile thermo.ino I get the following error message :
"
In file included from helloworld_with_Eink.ino:9:
C:\Users\fadrangi\Documents\Arduino\libraries\EPD_GFX/EPD_GFX.h: In constructor 'EPD_GFX::EPD_GFX(EPD_Class&, S5813A_Class&)':
C:\Users\fadrangi\Documents\Arduino\libraries\EPD_GFX/EPD_GFX.h:48: error: no matching function for call to 'Adafruit_GFX::Adafruit_GFX(const int&, const int&)'
C:\Program Files (x86)\Arduino\libraries\Robot_Control/Adafruit_GFX.h:41: note: candidates are: Adafruit_GFX::Adafruit_GFX()
C:\Program Files (x86)\Arduino\libraries\Robot_Control/Adafruit_GFX.h:41: note: Adafruit_GFX::Adafruit_GFX(const Adafruit_GFX&)
helloworld_with_Eink.ino: In function 'void messageCallout(String)':
helloworld_with_Eink:278: error: 'G_EPD' was not declared in this scope
"
Any thoughts / advice?

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: compilation error form thermo.ino

Post by Franklin97355 »

The Arduino core libraries has an included ROBOT CONTROL library that conflicts with the Adafruit GFX library. You need to go into the Arduino libraries folder (not the one where your sketches are) and remove the robot control library, don't just rename it, that does not work. Try after you've done that and restarted the IDE.

fadrangi
 
Posts: 3
Joined: Thu Jul 31, 2014 1:17 am

Re: compilation error form thermo.ino

Post by fadrangi »

thanks a bunch Frank. I removed robot librarites from the main folder. But, now I get the following error messages ::

In file included from thermo.ino:37:
C:\Users\fadrangi\Documents\Arduino\libraries\EPD_GFX/EPD_GFX.h:24: error: expected class-name before '{' token
C:\Users\fadrangi\Documents\Arduino\libraries\EPD_GFX/EPD_GFX.h: In constructor 'EPD_GFX::EPD_GFX(EPD_Class&, S5813A_Class&)':
C:\Users\fadrangi\Documents\Arduino\libraries\EPD_GFX/EPD_GFX.h:47: error: class 'EPD_GFX' does not have any field named 'Adafruit_GFX'
thermo.ino: In function 'void loop()':
thermo:179: error: 'class EPD_GFX' has no member named 'height'
thermo:180: error: 'class EPD_GFX' has no member named 'width'
thermo:182: error: 'class EPD_GFX' has no member named 'drawRect'
thermo:183: error: 'class EPD_GFX' has no member named 'drawRect'
thermo:185: error: 'class EPD_GFX' has no member named 'fillTriangle'
thermo:186: error: 'class EPD_GFX' has no member named 'fillTriangle'
thermo:194: error: 'class EPD_GFX' has no member named 'drawChar'
thermo:198: error: 'class EPD_GFX' has no member named 'drawCircle'
thermo:218: error: 'class EPD_GFX' has no member named 'fillRect'
thermo:219: error: 'class EPD_GFX' has no member named 'fillRect'
thermo:227: error: 'class EPD_GFX' has no member named 'drawCircle'
thermo:231: error: 'class EPD_GFX' has no member named 'drawLine'
thermo:232: error: 'class EPD_GFX' has no member named 'drawLine'
thermo:233: error: 'class EPD_GFX' has no member named 'drawLine'

Any thoughts?

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: compilation error form thermo.ino

Post by Franklin97355 »

That looks like the libraries are corrupt or missing. Try replacing the Adafruit_GFX and EPD_GFX libraries and see what happens.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”