Hello Tim,
in answer to your "answer":
Tim@Visual Micro wrote on Jan 23
rd, 2014 at 8:54pm:
1)
Can you confirm that you had not previously modified the Arduino core or created your own custom board that appeared in the boards list that contained the -std=gnu99 setting? I know we have ways of modifying the compile process to support this but do not recall using an Atmel Studio property.
No, I didn't modify any arduino code.
Tim@Visual Micro wrote on Jan 23
rd, 2014 at 8:54pm:
2)
Were you previously using the Due or an Avr board?
Yes, and on my second computer it's still working in that combination (see below).
Tim@Visual Micro wrote on Jan 23
rd, 2014 at 8:54pm:
3)
Which version of the Arduino Ide were you using with 1310?
As I wrote in the topic before. it still works on
Win7/64Bit, Visual Studio 6.1 (6.1.2730 SP2), VisualMicro plugin 1.1309.11, Arduino 1.5.4 with an arduino due board
Some more explanations:
I had some code I want to port to the Due.
But in this code there are many places with code allowed by c99 (var declaration in for loops etc.).
I found out (via trial and error) that placing this flag in the cppproj file at this place makes my code compile.
There are also options in the VisualMicro plugin (compiler - debug/release configuration), but at the time I was searching a way to set the std flag, this didn't work.
Or will it now?
Or do you perhaps know another way to set the std flag?
Tim@Visual Micro wrote on Jan 23
rd, 2014 at 8:54pm:
the abillity of stepping through the program
I'm aware of these problem in arduino, and never thougth that it would be easy...
But a function like this would really make the hearts beats faster in every programmers chest
Best regards,
Gunter