VS Arduino
>> >> Arduino Library Project include directives
https://www.visualmicro.com/forums/YaBB.pl?num=1596317665

Message started by Matt Parish on Aug 1st, 2020 at 9:34pm

Title: Arduino Library Project include directives
Post by Matt Parish on Aug 1st, 2020 at 9:34pm
I am trying to have a solution structure with a single Arduino Project that is the main code to upload to my board (Arduino Uno), with multiple Arduino Library Projects as wrappers for particular board module functionality (such as the Emic 2 TTS module).

My problem occurs when trying to include Arduino libraries in my own library project, the specific example being SoftwareSerial.h. If I include this in the library project and the main Arduino project, everything is hunky-dory. However, I don't want to include that library in the main project because it isn't necessary. I only need it included in the library project. When I try to do that, though, the solution will not compile as the library project doesn't let me include anything from Arduino unless it is also defined in the main project...

This is not consistent with regular Arduino functionality as one would find in the Arduino IDE.

Please instruct how to accomplish this as I have poured through documentation and forums and haven't yet found anything.

Title: Re: Arduino Library Project include directives
Post by Visual Micro on Aug 1st, 2020 at 9:38pm
Hi

Is it possible that you have switched off "vMicro>Compiler>Deep Search for Libraries"?

If that is not the problem them please include the information requested in yellow above. Visual Micro should work the same as the Arduino IDE unless you have switched off that option then it works as you describe and with faster build times.

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.