Paul,
It appears that Teensy turns on this option:
-std=c++0x
which is not used on the other AVR cores.
I'm guessing that is creating this "issue".
I accidentally ran into this with some openGLCD code.
The code is from the GLCDv3 library and I have a compatibility mode
that allows most existing GLCDv3 code to work.
The module in question actually has many warnings in it, some quite
severe.
Normally I would fix them, in fact I have but because I ship
modified and unmodified GLCDv3 examples, to demonstrate how "un-modified" GLCDv3
code can run on openGLCD, I ran into this issue.
The unmodified GLCDv3 module with the questionable code actually compiles
and runs on the other AVR processors but not on Teensy/Teensy++
Ironically, it also builds on Teensy3.
To see the issue you can go get the latest openGLCD build from the openGLCD bitbucket site
https://bitbucket.org/bperrybap/openglcd/downloads/openGLCD-v0.8a-7-g9b22651.zip
(Not sure if the direct download like will work)
Then select this example:
openGLCD->GLCDv3demos->GLCDv3->GLCD_BigDemo
A few of the warning are errors with Teensy/Teensy++
The updated/clean version of the same code is:
openGLCD->GLCDv3demos->openGLCD->GLCD_BigDemo
And obviously it works with no issues as the code has been updated & corrected.
Not sure what the answer is, Just wanted to let you know
about this compatibility difference.
--- bill
It appears that Teensy turns on this option:
-std=c++0x
which is not used on the other AVR cores.
I'm guessing that is creating this "issue".
I accidentally ran into this with some openGLCD code.
The code is from the GLCDv3 library and I have a compatibility mode
that allows most existing GLCDv3 code to work.
The module in question actually has many warnings in it, some quite
severe.
Normally I would fix them, in fact I have but because I ship
modified and unmodified GLCDv3 examples, to demonstrate how "un-modified" GLCDv3
code can run on openGLCD, I ran into this issue.
The unmodified GLCDv3 module with the questionable code actually compiles
and runs on the other AVR processors but not on Teensy/Teensy++
Ironically, it also builds on Teensy3.
To see the issue you can go get the latest openGLCD build from the openGLCD bitbucket site
https://bitbucket.org/bperrybap/openglcd/downloads/openGLCD-v0.8a-7-g9b22651.zip
(Not sure if the direct download like will work)
Then select this example:
openGLCD->GLCDv3demos->GLCDv3->GLCD_BigDemo
A few of the warning are errors with Teensy/Teensy++
The updated/clean version of the same code is:
openGLCD->GLCDv3demos->openGLCD->GLCD_BigDemo
And obviously it works with no issues as the code has been updated & corrected.
Not sure what the answer is, Just wanted to let you know
about this compatibility difference.
--- bill