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 Problem including library (Read 1419 times)
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Problem including library
May 26th, 2023 at 7:04am
Print Post  
Hi,
I am trying to include a library in my project using the `Add library, Current platform` and selecting the library.

It does not get added to the .ino file so I added it manually:
#include <ArduinoOTA.h>
but when I compile the project it cannot be found and fails.
I know it exists as I use it in other projects.

I tried editing the .vcxproj file to add the path both in <IncludePath> and <AdditionalIncludeDirectories> but it still can´t be found.

I have refreshed the libraries and closed and reopened the project but still the same.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Problem including library
Reply #1 - May 26th, 2023 at 8:12am
Print Post  
Thanks for the report.

Can you attach the full build output as a text file attachment, with the Verbose and Show Build Properties options enabled as shown at the top of this page?

Clicking Save or Building the code will resolve library dependancies (unless you have swithed that off). Building the code also discovers libraries #included within libraries
« Last Edit: May 27th, 2023 at 9:56pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint