maly / tm1638-library

Automatically exported from code.google.com/p/tm1638-library
0 stars 1 forks source link

Error while linking tm1638_one_module_example #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.Install Arduino 0023 on Win XP

2.Download TM1638 Library v2.0.0.zip and install it according to the 
instructions

3.Open the example tm1638_one_module_example provided with the library, and 
compile it inside Arduino IDE.

4. TM1638\TM16XX.cpp.o:(.rodata._ZTV6TM16XX+0x14): undefined reference to 
`__cxa_pure_virtual'

What is the expected output? What do you see instead?

Binary sketch size: xxxx bytes (of a yyyy byte maximum)

What version of the product are you using? On what operating system?

Arduino 0023, Win XP
TM1638 Library v2.0.0.zip

Please provide any additional information below.

With the library 1.6, the same example compiles and links ok.

Original issue reported on code.google.com by Gc.Nest...@gmail.com on 12 Jan 2012 at 10:44

GoogleCodeExporter commented 9 years ago
I noticed that a newer version of arduino IDE is available. With the new 
version, this library works ok.

Original comment by Gc.Nest...@gmail.com on 13 Jan 2012 at 5:42

GoogleCodeExporter commented 9 years ago
I couldn't find time to reproduce this yet, but I was guessing that arduino 
pre-1.0 doesn't support pure virtual function (abstract classes). With the new 
2.0.0 version, the TM16XX serves as a base for both the TM1638 and TM1640 and 
has a pure virtual method. Apparently that is not supported by earlier versions 
of the arduino compiler.

This was already the case with the inclusions in the library (pre 1.0 requires 
"WProgram.h" and 1.0+ requires "Arduino.h")

I'll use the same method to solve this, presenting an empty implementation for 
the method instead of the pure-virtual on pre-1.0 arduino IDE.

Original comment by rjbati...@gmail.com on 13 Jan 2012 at 9:53

GoogleCodeExporter commented 9 years ago

Original comment by rjbati...@gmail.com on 18 Jan 2012 at 12:07