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 Odd compile error with debug on (Read 6610 times)
Peter Baines
Junior Member
**
Offline


Posts: 18
Location: France
Joined: Sep 30th, 2011
Odd compile error with debug on
Dec 16th, 2012 at 7:08pm
Print Post  
Hello FOlks I am having an issue with a mutiple .INO sketch project. It all compiles fine with the debug option turned off. However even without any break points set it fails to compile with the following error ..

Compiling 'Spill_Splash_Splotch_2' for 'Arduino Uno'
Binary sketch size: 11268 bytes (of a 32256 byte maximum) (1.265625 secs)
Compiling debug version of 'Spill_Splash_Splotch_2' for 'Arduino Uno'
Spill_Splash_Splotch_2.ino : expected initializer before 'MicroDebug'
Spill_Splash_Splotch_2.ino : expected constructor, destructor, or type conversion before '(' token
Spill_Splash_Splotch_2.ino : expected constructor, destructor, or type conversion before '.' token
Spill_Splash_Splotch_2.ino : expected constructor, destructor, or type conversion before '.' token
Spill_Splash_Splotch_2.ino : expected constructor, destructor, or type conversion before '(' token
Spill_Splash_Splotch_2.ino : expected constructor, destructor, or type conversion before '.' token
Spill_Splash_Splotch_2.ino : expected unqualified-id before '{' token
Error compiling


I don't know how to attach the code to this thread but if someone wants to take a look at the problem I can email it to them.

Cheers Pete.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Odd compile error with debug on
Reply #1 - Dec 16th, 2012 at 8:02pm
Print Post  
Hi. Please email the sketch so I can take a look at it.

Thanks
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Odd compile error with debug on
Reply #2 - Dec 16th, 2012 at 10:37pm
Print Post  
Thanks for the sketch. I have found the problem. 

The Vm debugger is not handling a blank line between function name and first brace.

Your code is :-
Code
Select All
void setup(void)

{
 



Please remove the empty line prior to the first brace as follows:-
Code
Select All
void setup(void)
{
 



I'll add this to the list and hopefully will find time to tighten things up before the next release but for now I think you will find the fix easy to implement  Smiley 

Thanks for the report

« Last Edit: Dec 16th, 2012 at 10:38pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Peter Baines
Junior Member
**
Offline


Posts: 18
Location: France
Joined: Sep 30th, 2011
Re: Odd compile error with debug on
Reply #3 - Dec 17th, 2012 at 10:07am
Print Post  
Hi Tim,

That seems to have cured it thank you I will continue to test it and stretch it to the limits  Wink

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