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 Re: Compile errors of core code when activating debug configuration (Read 3365 times)
bainbob
Junior Member
**
Offline


Posts: 13
Joined: Feb 20th, 2015
Re: Compile errors of core code when activating debug configuration
Mar 9th, 2015 at 6:54pm
Print Post  
Did you ever resolve this problem?  I am getting similar results but not because of a debug build. If I open then solution and try to build I get all these macro errors, but if I open the sketch it builds just fine.
  
Back to top
 
IP Logged
 
bainbob
Junior Member
**
Offline


Posts: 13
Joined: Feb 20th, 2015
Re: Compile errors of core code when activating debug configuration
Reply #1 - Mar 9th, 2015 at 7:08pm
Print Post  
This is not a fix but it is a workaround. If I open the .PROGRAM.vsarduino.h file in the editor (which contains the offending macro definitions) and then build it everything works fine (no errors). The header IS in my project/solution but for some reason is not included in the build when you just open the solution INSTEAD of opening the sketch.
  
Back to top
 
IP Logged
 
bainbob
Junior Member
**
Offline


Posts: 13
Joined: Feb 20th, 2015
Re: Compile errors of core code when activating debug configuration
Reply #2 - Mar 9th, 2015 at 7:21pm
Print Post  
Open the ".vsarduino.h" file for your project in the visual studio editor then try to build your code - it worked for me! The missing macro definitions (that are causing your errors) are in the vsarduino.h header. I don't know why it isn't being included in the build (since it IS in the forcedinclude section of the vcproj file) but apparently it's not.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile errors of core code when activating debug configuration
Reply #3 - Mar 9th, 2015 at 11:12pm
Print Post  
Hi

I moved to a new thread because I think there are some questions to be asked.

The vsarduino.h is for intellisense only and not included in an arduino compile.

The visual studio project settings are also for intellisense only and not relative to an arduino compile

The arduino compile is entirely defined by the config files installed when the arduino ide is installed.

So if you have intellisense errors please state which ide, which hardware/board and gives an idea of the few of the errors.

what are the missing definitions you refer to?

Thanks

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