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 Adding an built-in Library to an Arduino Library Project (Read 1890 times)
HughMacd
Newbies
*
Offline


Posts: 6
Location: London, UK
Joined: Sep 11th, 2018
Adding an built-in Library to an Arduino Library Project
Sep 12th, 2018 at 12:11pm
Print Post  
Hi,

Is it possible to add a built-in library to an Arduino Library Project? When I'm on a Library Project, the "Add Library" button disappears.

In my case, I'd like my library to use the Ethernet built-in library, but it seems like I can only add it to the project.

If I replace the Library Project with a Shared Code Project, I can add the built-in library to the main Project, but still use the code in the Shared Code Project.

Am I missing something here, or is a Shared Code Project the only way to go for this?

Thanks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adding an built-in Library to an Arduino Library Project
Reply #1 - Sep 12th, 2018 at 12:17pm
Print Post  
Are you simply asking if an Arduino library can reference another library?
  
Back to top
IP Logged
 
HughMacd
Newbies
*
Offline


Posts: 6
Location: London, UK
Joined: Sep 11th, 2018
Re: Adding an built-in Library to an Arduino Library Project
Reply #2 - Sep 12th, 2018 at 12:24pm
Print Post  
My understanding is that this is possible. I found a reference to an issue with library to library dependencies being fixed in 1.6.6.

What I'm not certain of is how to get this working in Visual Micro
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adding an built-in Library to an Arduino Library Project
Reply #3 - Sep 12th, 2018 at 1:03pm
Print Post  
Did you try #include <myLib.h>?

Did the build work but intellisense fail or did both build and intellisense fail?
  
Back to top
IP Logged
 
HughMacd
Newbies
*
Offline


Posts: 6
Location: London, UK
Joined: Sep 11th, 2018
Re: Adding an built-in Library to an Arduino Library Project
Reply #4 - Sep 13th, 2018 at 2:08pm
Print Post  
Somewhat embarrassingly, that seems to have worked. I think I was having a bit of a brain-fart, and was doing #include "Library.h"

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