sevenseg.ino compile error

by callas on Sat Sep 21, 2013 9:46 pm

I have downloaded the libraries, Adafruit_GFX and Adafruit_LEDBackpack, and installed them. When I load and compile the sevenseg.ino sketch and compile it, I see the following errors. The error seems to be in the library file. I am just trying to get a simple sketch running to test my 7-segment backpack display.

C:\arduino\arduino-1.0.5-windows\arduino-1.0.5\libraries\Adafruit_LEDBackpack\Adafruit_LEDBackpack.cpp: In constructor 'Adafruit_8x8matrix::Adafruit_8x8matrix()':
C:\arduino\arduino-1.0.5-windows\arduino-1.0.5\libraries\Adafruit_LEDBackpack\Adafruit_LEDBackpack.cpp:97: error: no matching function for call to 'Adafruit_GFX::Adafruit_GFX(int, int)'
C:\arduino\arduino-1.0.5-windows\arduino-1.0.5\libraries\Robot_Control/Adafruit_GFX.h:41: note: candidates are: Adafruit_GFX::Adafruit_GFX(const Adafruit_GFX&)
C:\arduino\arduino-1.0.5-windows\arduino-1.0.5\libraries\Robot_Control/Adafruit_GFX.h:41: note: Adafruit_GFX::Adafruit_GFX()
C:\arduino\arduino-1.0.5-windows\arduino-1.0.5\libraries\Adafruit_LEDBackpack\Adafruit_LEDBackpack.cpp: In constructor 'Adafruit_BicolorMatrix::Adafruit_BicolorMatrix()':
C:\arduino\arduino-1.0.5-windows\arduino-1.0.5\libraries\Adafruit_LEDBackpack\Adafruit_LEDBackpack.cpp:133: error: no matching function for call to 'Adafruit_GFX::Adafruit_GFX(int, int)'
C:\arduino\arduino-1.0.5-windows\arduino-1.0.5\libraries\Robot_Control/Adafruit_GFX.h:41: note: candidates are: Adafruit_GFX::Adafruit_GFX(const Adafruit_GFX&)
C:\arduino\arduino-1.0.5-windows\arduino-1.0.5\libraries\Robot_Control/Adafruit_GFX.h:41: note: Adafruit_GFX::Adafruit_GFX()
callas
 
Posts: 2
Joined: Sat Aug 31, 2013 12:30 pm

Re: sevenseg.ino compile error

by adafruit_support_mike on Sat Sep 21, 2013 10:49 pm

Ah.. the Robot Control problem..

The people who make the Arduino recently developed a robot platform and built support for it into the Arduino IDE. Unfortunately, the files that support the robot include an older copy of the Adafruit_GFX library. When you tried to compile the code for the seven-segment display, the compiler found the wrong version of the library first.

This is a known nuisance in the latest version of the Arduino IDE, and there are a couple of solutions: First, you can locate the folder referenced in the errors and delete it. That won't cause any problems unless you're planning to program an Arduino Robot. Second, you can downgrade to an older version of the Arduino IDE which doesn't have the extra/confusing Robot Control libraries.
When you void a product warranty, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.
User avatar
adafruit_support_mike
 
Posts: 6983
Joined: Thu Feb 11, 2010 1:51 pm

Re: sevenseg.ino compile error

by callas on Mon Sep 23, 2013 7:03 pm

Thanks. It works great now.
callas
 
Posts: 2
Joined: Sat Aug 31, 2013 12:30 pm

Re: sevenseg.ino compile error

by gussmith on Wed Oct 23, 2013 11:41 am

I have the same error but no reference to robot. I am using Uno and IDE 1.5.4 on a Mac.

Gus

Code: Select all
Arduino: 1.5.4 (Mac OS X), Board: "Arduino Uno"

/Users/janjansen/Desktop/dev/arduino154/Arduino.app/Contents/Resources/Java/libraries/Adafruit_LED/Adafruit_LEDBackpack.cpp: In constructor 'Adafruit_8x8matrix::Adafruit_8x8matrix()':
/Users/janjansen/Desktop/dev/arduino154/Arduino.app/Contents/Resources/Java/libraries/Adafruit_LED/Adafruit_LEDBackpack.cpp:97: error: no matching function for call to 'Adafruit_GFX::Adafruit_GFX(int, int)'
/Users/janjansen/Desktop/dev/arduino154/Arduino.app/Contents/Resources/Java/libraries/Adafruit_GFX/Adafruit_GFX.h:28: note: candidates are: Adafruit_GFX::Adafruit_GFX(const Adafruit_GFX&)
/Users/janjansen/Desktop/dev/arduino154/Arduino.app/Contents/Resources/Java/libraries/Adafruit_GFX/Adafruit_GFX.h:28: note:                 Adafruit_GFX::Adafruit_GFX()
/Users/janjansen/Desktop/dev/arduino154/Arduino.app/Contents/Resources/Java/libraries/Adafruit_LED/Adafruit_LEDBackpack.cpp: In constructor 'Adafruit_BicolorMatrix::Adafruit_BicolorMatrix()':
/Users/janjansen/Desktop/dev/arduino154/Arduino.app/Contents/Resources/Java/libraries/Adafruit_LED/Adafruit_LEDBackpack.cpp:133: error: no matching function for call to 'Adafruit_GFX::Adafruit_GFX(int, int)'
/Users/janjansen/Desktop/dev/arduino154/Arduino.app/Contents/Resources/Java/libraries/Adafruit_GFX/Adafruit_GFX.h:28: note: candidates are: Adafruit_GFX::Adafruit_GFX(const Adafruit_GFX&)
/Users/janjansen/Desktop/dev/arduino154/Arduino.app/Contents/Resources/Java/libraries/Adafruit_GFX/Adafruit_GFX.h:28: note:                 Adafruit_GFX::Adafruit_GFX()


gussmith
 
Posts: 2
Joined: Wed Oct 23, 2013 11:23 am

Re: sevenseg.ino compile error

by adafruit_support_bill on Wed Oct 23, 2013 11:46 am

1.5.4 is a beta release of the Arduino software. Many libraries do not work with it yet. We recommend using version 1.0.5 unless you need support for the Arduino Due.
User avatar
adafruit_support_bill
 
Posts: 25348
Joined: Sat Feb 07, 2009 9:11 am

Re: sevenseg.ino compile error

by adafruit_support_rick on Wed Oct 23, 2013 11:47 am

Please download and install the latest version of the Adafruit_GFX library.
User avatar
adafruit_support_rick
 
Posts: 8435
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: sevenseg.ino compile error

by gussmith on Wed Oct 23, 2013 11:52 am

I have downloaded 1.0.5 and have the same error.
I have downloaded libs from https://github.com/adafruit/Adafruit-LED-Backpack-Library and https://github.com/adafruit/Adafruit-GFX-Library

Code: Select all
/Users/janjansen/Desktop/dev/arduino105/Arduino.app/Contents/Resources/Java/libraries/Adafruit_LED/Adafruit_LEDBackpack.cpp: In constructor 'Adafruit_8x8matrix::Adafruit_8x8matrix()':
/Users/janjansen/Desktop/dev/arduino105/Arduino.app/Contents/Resources/Java/libraries/Adafruit_LED/Adafruit_LEDBackpack.cpp:97: error: no matching function for call to 'Adafruit_GFX::Adafruit_GFX(int, int)'
/Users/janjansen/Desktop/dev/arduino105/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/Adafruit_GFX.h:41: note: candidates are: Adafruit_GFX::Adafruit_GFX(const Adafruit_GFX&)
/Users/janjansen/Desktop/dev/arduino105/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/Adafruit_GFX.h:41: note:                 Adafruit_GFX::Adafruit_GFX()
/Users/janjansen/Desktop/dev/arduino105/Arduino.app/Contents/Resources/Java/libraries/Adafruit_LED/Adafruit_LEDBackpack.cpp: In constructor 'Adafruit_BicolorMatrix::Adafruit_BicolorMatrix()':
/Users/janjansen/Desktop/dev/arduino105/Arduino.app/Contents/Resources/Java/libraries/Adafruit_LED/Adafruit_LEDBackpack.cpp:133: error: no matching function for call to 'Adafruit_GFX::Adafruit_GFX(int, int)'
/Users/janjansen/Desktop/dev/arduino105/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/Adafruit_GFX.h:41: note: candidates are: Adafruit_GFX::Adafruit_GFX(const Adafruit_GFX&)
/Users/janjansen/Desktop/dev/arduino105/Arduino.app/Contents/Resources/Java/libraries/Robot_Control/Adafruit_GFX.h:41: note:                 Adafruit_GFX::Adafruit_GFX()

gussmith
 
Posts: 2
Joined: Wed Oct 23, 2013 11:23 am

Re: sevenseg.ino compile error

by adafruit_support_rick on Wed Oct 23, 2013 11:58 am

The IDE is still finding an old version of Adafruit_GFX. Did you restart the IDE after installing the new version of Adafruit_GFX?

Check your computer for old versions of the library and delete them.

Make sure that you are installing the new version into the correct location. Open Preferences and look at the Sketchbook Location - the libraries folder should be located inside of that sketchbook folder.
User avatar
adafruit_support_rick
 
Posts: 8435
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY