Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic UHC.c USB host controller - option c99 (Read 2599 times)
Vaclav
Junior Member
**
Offline


Posts: 81
Joined: Dec 28th, 2013
UHC.c USB host controller - option c99
Nov 25th, 2014 at 4:58am
Print Post  
I am compiling this code in Arduino IDE (Due) and the compiler does not like a variable to be defined / initialized in plain "for" loop bunt ONLY in this source code. Something about standard C99.
So why is it failing ONLY in this code?
What do I change to make sure this C99 standard applies to it, when it works anywhere else?
I do not have access to compiler command  line  - using Widows to add -std=c99, but if it works everywhere else why would I have to add this option in first place.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: UHC.c USB host controller - option c99
Reply #1 - Nov 25th, 2014 at 1:24pm
Print Post  
Hi,

You can edit arduinoide/hardware/arduino/sam/platform.txt. Change the cpp recipe to include any settings you require.

Then restart ide's

Hope that makes sense

  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint