Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Libraries not loading (Read 212 times)
TheEngineersBeard
Newbies
*
Offline



Posts: 3
Libraries not loading
Aug 18th, 2020 at 1:29pm
 
Hello,

I am having a problem where compilation is failing in Atmel studio as it is failing to find the libraries. The libraries do appear in the "Add Library" menu, so I don't understand why it can't find them when compiling.

Everything compiles fine in the Arduino IDE.

I've attached the verbose output from atmel studio and arduino IDE.

Suggestions on how to fix this? I'd really much rather be working in Atmel studio.
Back to top
 

Please Register or Login to the Forum to see File Attachments
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10893
United Kingdom
Re: Libraries not loading
Reply #1 - Aug 18th, 2020 at 1:37pm
 
Hi,

It looks like you have switched off the "vMicro>Compiler>Deep search for libraries". The code you are using #includes the libraries from .cpp source and therefore requires deep search.

Alternatively you can #include a .h from each library that you need into the .ino code. That will then allow them to be discovered without the need for deep search.

The Arduino IDE does not give facility to switch off Deep Search.
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
TheEngineersBeard
Newbies
*
Offline



Posts: 3
Re: Libraries not loading
Reply #2 - Aug 18th, 2020 at 1:54pm
 
I definitely have deep search enabled (see image).

Plus the libraries in the .ino are also not loading...
Back to top
 

Please Register or Login to the Forum to see File Attachments
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10893
United Kingdom
Re: Libraries not loading
Reply #3 - Aug 18th, 2020 at 2:19pm
 
Sorry yes you are right. We need to test why deep search is not running for you in AS7.

One thing to try in the meantime is that there is an updated version due to be released to the microchip gallery.

However, the release is available as the LATEST here https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Please try.

Thanks
Back to top
« Last Edit: Aug 18th, 2020 at 2:20pm by Visual Micro »  

Tim Leek
home
WWW  
IP Logged
 
TheEngineersBeard
Newbies
*
Offline



Posts: 3
Re: Libraries not loading
Reply #4 - Aug 18th, 2020 at 2:46pm
 
Upgrading to the latest version has fixed the problem.

Thank you!
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10893
United Kingdom
Re: Libraries not loading
Reply #5 - Aug 18th, 2020 at 3:20pm
 
Good, thanks for update.
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print