Welcome! Log In Create A New Profile

Advanced

Latest Teacup (as of 17/07/13) Compilation errors

Posted by totalis 
Latest Teacup (as of 17/07/13) Compilation errors
July 18, 2013 04:22AM
Im on a windows 7 machine, with win-AVR installed (20100110)

Downloaded the latest version of the Teacup firmware

Open with arduino 1.0.5

dda_lookahead.c: In function 'dda_join_moves':
dda_lookahead.c:214: error: 'for' loop initial declaration used outside C99 mode
dda_lookahead.c:455: error: redefinition of 'sreg_save'
dda_lookahead.c:214: error: previous definition of 'sreg_save' was here
dda_lookahead.c:455: error: redefinition of '__ToDo'
dda_lookahead.c:214: error: previous definition of '__ToDo' was here
dda_lookahead.c:455: error: 'for' loop initial declaration used outside C99 mode

Any ideas?

Thanks

T
Re: Latest Teacup (as of 17/07/13) Compilation errors
July 19, 2013 07:29AM
Oh well, I forgot to solve this. LOOKAHEAD works when compiling with a C99 compiler, only. Arduino IDE insists on using C89.

Please comment out LOOKAHEAD in config.h or use the Makefile for now. The real solution is to replace the ATOMIC_BLOCK() macro. A sample on how to do this is for example in queue_empty() in dda_queue.c.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Latest Teacup (as of 17/07/13) Compilation errors
July 21, 2013 05:56PM
Should work now, even with with LOOKAHEAD defined. On the master branch as well as on the Gen7 branch. Enjoy!


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Sorry, only registered users may post in this forum.

Click here to login