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
Locked Topic VM ignores excluded header files (Read 2455 times)
uiewiuwfeiub
Newbies
*
Offline


Posts: 9
Joined: Nov 27th, 2015
VM ignores excluded header files
Nov 27th, 2015 at 4:15pm
 
Hi
I tried today VM to convert the firmware of the reprap printers "Marlin" to Visual Studio. After some startup lags I have (hope so) one last thing:

In code there is:
#elif MB(MELZI)
  #include "pins_MELZI.h"  <== greyed
#elif MB(STB_11)
  #include "pins_STB_11.h"   <== greyed

So, one would assume these two header files will not be included.

But in your Marlin.vsarduino.h there are two lines:
#include <..\Marlin\pins_MELZI.h>
#include <..\Marlin\pins_STB_11.h>

And in the "Error List" window I see errors:
of the following statement coded in the header file which should be excluded from build.
#ifndef __AVR_AT90USB1286__
  #error Oops!  Make sure you have selected from the 'Tools -> Boards' menu.
#endif

It looks like the header file is included anyway.
Also other errors appear because some LCD code fails because of other false includes.

Setup:
VisualMicro 1511.23.1
Visual Studio 2015
SourceCode : https://github.com/MarlinFirmware/Marlin
OS: Win7

What am I missing? Can you please give me a tip?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VM ignores excluded header files
Reply #1 - Nov 27th, 2015 at 5:06pm
 
Hi, this has always been the case with arduino for includes in the .ino files. There is a new system produced a few weeks ago in arduino 1.6.6 which we will shortly implement it's designed to solve this issue.

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