Comments (9)
[deleted comment]
from arduino-tiny.
Thank you for taking the time to post this issue.
What is the error message?
Original comment by [email protected]
on 2 Nov 2011 at 5:25
from arduino-tiny.
In file included from
/usr/lib/gcc/avr/4.5.3/../../../avr/include/util/delay.h:44:0,
from /usr/lib/gcc/avr/4.5.3/../../../avr/include/avr/delay.h:37,
from /home/scott/Arduino Sketches/hardware/tiny/cores/tiny/wiring_private.h:32,
from /home/scott/Arduino Sketches/hardware/tiny/cores/tiny/WInterrupts.c:37:
/usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h:426:15: error: expected
identifier or ‘(’ before ‘double’
/usr/lib/gcc/avr/4.5.3/../../../avr/include/math.h:426:15: error: expected
‘)’ before ‘>=’ token
Original comment by [email protected]
on 2 Nov 2011 at 5:53
from arduino-tiny.
I'm getting the same error with
//#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
already commented out.
arduino 0022 on Ubuntu 11.10
any ideas?
Original comment by [email protected]
on 26 Nov 2011 at 5:38
from arduino-tiny.
ah, got it!
to all who encounter the same problem be careful that it is
/whatever/hardware/attiny45_85/cores/attiny45_85/wiring.h that gets the change,
/whatever/arduino/hardware/arduino/cores/arduino/wiring.h is the one that
doesn't matter. took me a while to realize the ide was referencing a different
wiring.h when configured to program an attiny
Original comment by [email protected]
on 26 Nov 2011 at 8:20
from arduino-tiny.
I found I had to edit math.h and add
#undef round
as line 426 as per http://forums.reprap.org/read.php?146,107925,107925,quote=1
Original comment by [email protected]
on 27 Dec 2011 at 4:38
from arduino-tiny.
I also just added an #undef in math.h as well, which should address all targets.
And this is an issue under OSX as well.
Original comment by [email protected]
on 17 Aug 2012 at 10:55
from arduino-tiny.
just found this same issue on debian jessie with gcc-avr 4.7.2 /
arduino-tiny-0100-0016
how is this not fixed in the May 24th 2013 release? i mean even Blink won't
work without it and its a two year old bug!
the fix that worked for me was commenting out line 137 of
~/sketchbook/hardware/tiny/cores/tiny/wiring.h
//#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
but i assume that now means we can't using the round() function....?
Original comment by [email protected]
on 3 Jun 2013 at 8:53
from arduino-tiny.
The round macro has been removed.
Original comment by [email protected]
on 6 Jun 2013 at 5:14
- Changed state: Done
from arduino-tiny.
Related Issues (20)
- PSTR Substitute
- Question: How to change "upload.tool" entries?
- Yikes! Invalid device signature. HOT 2
- Support for '26
- add ATtiny24-8Mhz support
- Leonardo as ISP
- AVRDUDE fails to auto-detect arduino-tiny binaries on Windows HOT 4
- Add support for 128 KHz
- Include a Servo library
- Repeated calls to tone() breaks on tiny25
- Add support for the FreqCount library
- Attiny85 First steps error avrdude: stk500_getsync(): not in sync: resp=0x00 HOT 1
- arduino-tiny ins't working for 1.5.8 arduino IDE
- Tone library working only with Attiny85 and not with Attiny45 HOT 16
- Issue with Attiny84 HOT 3
- avr-gcc: error: language -assembler-with-cpp not recognized
- Arduino-tiny does not compile any sketch on recent Arduino IDE HOT 1
- PWM glitch when ramping up followed by a pause HOT 1
- ATtiny4313 Hardware Serial RX issue
- On Compiling: "Third-party platform.txt does not define compiler.path"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-tiny.