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 Not same errors when compiling with Visual Studio and with CLI (Read 437 times)
stm
Junior Member
**
Offline


Posts: 27
Joined: Jul 5th, 2018
Not same errors when compiling with Visual Studio and with CLI
Jan 12th, 2021 at 11:48am
Print Post  
Hello my CLI build results in more errors than my Visual Studio build. For example it requires correct forward declarations. The following example only builds in VS but not in CLI:

/*
Name:            XYZ.ino
Created:      16/12/2020 2:51:07 PM
Author:      Testuser
*/

void setup()
{
    Test();
}

void loop()
{
     delay(1);
}

void Test()
{
    delay(3);
}
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: Not same errors when compiling with Visual Studio and with CLI
Reply #1 - Jan 12th, 2021 at 12:56pm
Print Post  
Thanks for the report.

Would it be possible to attach the output from the failed CLI Build?

Also it appears that the "vMicro" > "Compiler" > "Deep Search for Libraries + Accurate Prototype Insertion" option is disabled, which is what generates the prototypes for the forward declarations.  Does enabling this and saving the project, then rebuilding with the CLI improve the errors?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint