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 Compilation error (Read 1310 times)
Joao Tavares
Newbies
*
Offline


Posts: 9
Joined: Nov 24th, 2017
Compilation error
Jan 16th, 2019 at 5:57pm
Print Post  
Good afternoon
I am sending a small  sketch that is compiling in Arduino but not in Visual micro. 
Can you help me with the issue and explaining me what am I doing wrong please.

Thank you in advance

Best regards

Joao Tavares
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compilation error
Reply #1 - Jan 16th, 2019 at 8:05pm
Print Post  
Thanks for the post and the example. I am surprised this has not been reported before and will look at a fix in the next release.

The issue relates to the automatic prototype generation which detects already placed prototypes. The detection is failing due to the comments and space chars in your method. Your code is fine but the layout has caused an issue.

If you switch off the "Automatic Prototypes" setting in the "Project Properties (F4)" that will prevent the issue. The auto prototype system isn't required because you add your own (which is always better).



By the way, VS will auto detect //comments above methods and use them in intellisense and in various other places.

  
Back to top
WWW  
IP Logged
 
Joao Tavares
Newbies
*
Offline


Posts: 9
Joined: Nov 24th, 2017
Re: Compilation error
Reply #2 - Jan 17th, 2019 at 8:23am
Print Post  
Good morning
Thank you for your very quick answer. 
The problem is solved thank you very much

Best regards

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