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 Upgrade to VS2015 with errors (Read 3727 times)
Willem
Newbies
*
Offline


Posts: 9
Location: Netherlands
Joined: Jul 26th, 2015
Upgrade to VS2015 with errors
Feb 9th, 2017 at 1:26pm
Print Post  
I have upgraded from Visual Studio 2013 to VS2015 and after that I installed the latest Visual Micro plugin.
Now I have problems to build Arduino projects that compiled fine before.
For example this code from http://github.com/JChristensen/DS3232RTC is now generating errors like the one you can see on the enclosed screenshot.
Besides of this a very weird behavior occurs on some 'old' projects: if click the ino file in the Solution Explorer the Arduino-IDE opens and not the Visual Studio editor!?
What's going wrong?
Many thanks in advance!
« Last Edit: Feb 9th, 2017 at 1:27pm by Willem »  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upgrade to VS2015 with errors
Reply #1 - Feb 11th, 2017 at 8:15pm
Print Post  
Hi,

That's a lot of strange stuff. I am sure we will see the solution but it's always useful to provide the following so we can see what you have installed, which hardware you are using and how your project and solution files are named :_

Switch on vmicro>compiler>verbose and also the "vmicro>show build properties". Then build a project and copy the resulting output into a new text .txt file. Then email the file to info[at]visualmicro.com along with a link to this post.

Please also show an image of your full visual studio ide with the solution explorer open and project/source codes expanded so we can see the name of the project and files.

As for VS launching the arduino ide I have never heard of that before, might be useful if you zip and email your files from your project folder so I can see the config.

Thanks.
« Last Edit: Feb 11th, 2017 at 8:17pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upgrade to VS2015 with errors
Reply #2 - Feb 13th, 2017 at 1:02am
Print Post  
Hi,

Thanks for the email

1)
The SetSerial.ino is not a normal text/code file. If you edit it notepad.exe you will see what I meam.

2)
The build failure in the clock example might be resolved with the latest 1702.15 update released today. Otherwise try switching off "vmicro>compiler>deep search includes"
  
Back to top
IP Logged
 
Willem
Newbies
*
Offline


Posts: 9
Location: Netherlands
Joined: Jul 26th, 2015
Re: Upgrade to VS2015 with errors
Reply #3 - Feb 16th, 2017 at 3:07pm
Print Post  
Hello Mr. Leek,

Thanks for your excellent and quick service!  Smiley
1)  You are right, I don't understand what happened but this problem is solved.
2)  I installed version 1702.15 but this didn't clear the errors. I discovered an installation error with Time.lib but that also wasn't the solution. 
After Googling quite a long time I found the way out. Very strange:  it was an extra   #include <TimeLib.h>  besides the  already existing  #include <Time.h> .
I think it is an Arduino V1.8.1 issue because this problem was not present at version 1.6.x.

But now all works fine!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Upgrade to VS2015 with errors
Reply #4 - Feb 16th, 2017 at 4:22pm
Print Post  
Great, thanks very much for the update.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint