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 Library compiler optimization does not detect changes to #defines in sketch source - Workaround (Read 2349 times)
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Library compiler optimization does not detect changes to #defines in sketch source - Workaround
Jul 25th, 2012 at 9:34pm
Print Post  
There is a bug with the compiler optimization in previous releases that fails to re-compile libraries when #defines have changed within the main sketch source code files. 

This will affect projects such as Arducopter that reply on defines to control the functionality of various libraries.

This issue is resolved in the next release because the plugin defaults to re-compiling libraries if the sketch project macros are changed. 

If you are working entirely with libraries that are uneffected by macro changes then this feature can be disabled using "Project Properties>Macros Affect Libraries=False"
Workaround. In the current release, if you change #defines that libraries rely on you should disable (False) the "Tools>Options>Visual Micro>Compiler Optimisation>Library Modified" option.

When/if you finish changing #defines and have re-compiled, you can set it to true again.
« Last Edit: Jul 25th, 2012 at 10:17pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint