Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail to compile arduino 022 version 1.10 for u8g #109

Open
GoogleCodeExporter opened this issue Jul 31, 2015 · 5 comments
Open

fail to compile arduino 022 version 1.10 for u8g #109

GoogleCodeExporter opened this issue Jul 31, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

Every example fails with:

"In file included from 
C:\arduino-0022\hardware\arduino\cores\arduino/WProgram.h:6,
                 from C:\arduino-0022\libraries\M2tklib\utility\m2ghserial.cpp:28:
c:/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: 
expected unqualified-id before 'double'
c:/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: 
expected `)' before 'double'
c:/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: 
expected `)' before 'double'
"

Original issue reported on code.google.com by [email protected] on 6 May 2013 at 11:31

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Will it compile with Arduino 1.0.x?

I do not test 0022 any more....

Original comment by [email protected] on 10 May 2013 at 1:16

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 31 Oct 2013 at 4:09

  • Added labels: Milestone-Future

@GoogleCodeExporter
Copy link
Author

Oliver,
It could be that a newer version of avr-libC is being used.
Here is a "known" issue from openGLCD:
==============================

    0019,0020,0021, 0022, 0023 pre 1.x IDEs won't work with newer versions of avr-libC
        new <util/delay.h> uses math.h and Arduino core code breaks math.h 

The solution to this is to either:

comment out #include <avr/delay.h> in wiring_private.h (none of the core code 
uses/needs it)

Or if wanting to make util/delay functions available: must add #include 
<math.h> to top of wiring.h since wiring.h #defines the math functions and 
breaks math.h Because of this, math.h must be included before defines stomp on 
math functions

==============================
It is a core code issue. They never should have redefined all the math 
functions.
And because they did, they periodically "break".
If this is the issue, there is no work around that can be done in the library.
The user will have to modify the core code header files.

--- bill

Original comment by [email protected] on 29 Dec 2013 at 9:11

@GoogleCodeExporter
Copy link
Author

Thanks for looking at the issues here, Bill
Good background information also.

I personally think that i will not do any further action here...

Original comment by [email protected] on 29 Dec 2013 at 9:52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant