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 Compile might fail if #includes are not in the main sketch (pde/ino) (Read 1748 times)
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Compile might fail if #includes are not in the main sketch (pde/ino)
Jul 17th, 2012 at 10:06pm
Print Post  
The next release of visual micro ensures that arduino pde and ino files are processed in alphabetical name order. 

The existing visual micro versions might fail to compile if a sketch design relies on this alpha sort for compile. In the short term the problem can be easily resolved by ensuring that #includes are only declared within the main sketch .pde or .ino.

An example of such a sketch is ArduCopter 2.6. This is an example of the fix:-

Arducopter 2.6

1) Comment out line 3 of GCS_Mavlink.pde like this...
Code
Select All
//#include "Mavlink_compat.h" 



2) Add the following line just after line 105 of arducopter.pde ...
Code
Select All
#include "Mavlink_compat.h" 



That's it!
« Last Edit: Jul 17th, 2012 at 10:11pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint