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 Prevent included library from compiling (Read 1802 times)
barnold
Newbies
*
Offline


Posts: 7
Joined: Mar 7th, 2015
Prevent included library from compiling
Jul 29th, 2015 at 3:54pm
Print Post  
I included a library in a project using the library import tool. The library is specific for ATTiny85 but the code also runs on an Arduino UNO by substituting a similar library using #if directives.

However, even though references to the ATTiny library and headers files have been conditionally removed, VisualMicro still tries to compile the library which fails for the UNO platform.

How do I make sure that a library is not compiled in the background? Also, if I decide to remove a library from a project, how do I go about that?

Cheers,
Brendan
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Prevent included library from compiling
Reply #1 - Jul 29th, 2015 at 4:18pm
Print Post  
Hi,

You remove a library by removing the #include

I think that the Arduino ide also compiles libraries regardless of their conditional include?

Thanks

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