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()
sevenseg.ino compile error
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_mike
- Posts: 67448
- Joined: Thu Feb 11, 2010 2:51 pm
Re: sevenseg.ino compile error
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.
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.
-
- Posts: 2
- Joined: Sat Aug 31, 2013 1:30 pm
Re: sevenseg.ino compile error
Thanks. It works great now.
-
- Posts: 2
- Joined: Wed Oct 23, 2013 12:23 pm
Re: sevenseg.ino compile error
I have the same error but no reference to robot. I am using Uno and IDE 1.5.4 on a Mac.
Gus
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()
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: sevenseg.ino compile error
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.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: sevenseg.ino compile error
Please download and install the latest version of the Adafruit_GFX library.
-
- Posts: 2
- Joined: Wed Oct 23, 2013 12:23 pm
Re: sevenseg.ino compile error
I have downloaded 1.0.5 and have the same error.
I have downloaded libs from https://github.com/adafruit/Adafruit-LE ... ck-Library and https://github.com/adafruit/Adafruit-GFX-Library
I have downloaded libs from https://github.com/adafruit/Adafruit-LE ... ck-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()
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: sevenseg.ino compile error
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.
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.
Please be positive and constructive with your questions and comments.