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 Meaningful compiler error messages (Read 2710 times)
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Meaningful compiler error messages
Aug 19th, 2018 at 9:52pm
Print Post  
I spend an inordinate amount trying to understand the garbled error messages from the GNU C++ compiler that comes with Visual Micro / Arduino. Are there any alternatives that will produce better diagnostics (Clang?) and how difficult is it to install an alternative compiler?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Meaningful compiler error messages
Reply #1 - Aug 23rd, 2018 at 12:04pm
Print Post  
The toolchain is specified by the core you have chosen
  
Back to top
IP Logged
 
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Re: Meaningful compiler error messages
Reply #2 - Aug 23rd, 2018 at 5:14pm
Print Post  
Tim,

Your message is too cryptic for me to understand. Could you please add a few sentences and possibly a link or two that will give me some more context.

Thanks,

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Meaningful compiler error messages
Reply #3 - Aug 23rd, 2018 at 11:59pm
Print Post  
You have not given info about which board you are using so I could not be more specific.

The fact is that when you install the arduino ide or download using board manager you are installing a core (platform). That contains the tools to build the code and instructions of what programs to run to perform the build.

So when you decide which board you want to use and you decide to use an arduino or compatible board you are choosing the toolchain which is the compiler.

Visual Micro just does whatever the core tells it to do for whatever board you have chosen.

  
Back to top
IP Logged
 
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Re: Meaningful compiler error messages
Reply #4 - Aug 24th, 2018 at 2:54am
Print Post  
Thanks. That helps a lot. I use Nanos, Unos and Megas. I am assuming that all three use the Gnu C++ compiler. If that is the case, are there viable alternative C++ compilers that will give more meaningful error messages and would be usable in this environment?

Thanks for being patient with me on this.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Meaningful compiler error messages
Reply #5 - Aug 25th, 2018 at 11:58am
Print Post  
I think you need to find an arduino code forum to ask these questions. This forum is just for tech support to get the arduino extension for vs working.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint