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 Local library problem in vs2017 (Read 2834 times)
Sidey
Newbies
*
Offline


Posts: 5
Joined: Mar 26th, 2018
Local library problem in vs2017
May 21st, 2018 at 5:36pm
Print Post  
Hi,

I've a problem with the last stable version from vmicro.
I've put mit local libs always in a folder src/_micro-api/libraries and that worked till i updated vmicro yesterday.

I can't find any docu how to integrate local libs. Undecided



I also tried to add the lib as Arduino library in the protect and make a reference.

I've tested this with the DHT library from adafruit.

I have:
Arduino Library project called DHT in a folder
DHT with the standard library files:

Code
Select All
DHT/library.properties
DHT/keywords.txt
DHT/DHT.vcxitems
DHT/src/DHT.cpp
DHT/src/DHT.h 




I have the lib and my program in the same solution and made a reference from my project to the DHT lib.

During compiliation i see this:
Code
Select All
Using library DHT version 1.2.3 in folder file:///projectdir/DHT 



later on in one of my header files i wand to use the DHT lib, but there is no object created and so there is an undefined reference:

[code]
tDHT.h:60: undefined reference to DHT  readHumidity(bool)/code]


I've similar problems with other solutions and different libs.
Embarrassed


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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Local library problem in vs2017
Reply #1 - May 21st, 2018 at 5:39pm
Print Post  
There is a download in the Work in Progress thread that will resolve the issue.
  
Back to top
WWW  
IP Logged
 
Sidey
Newbies
*
Offline


Posts: 5
Joined: Mar 26th, 2018
Re: Local library problem in vs2017
Reply #2 - May 21st, 2018 at 6:43pm
Print Post  
Thanks, that wip release for vs2017 works
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Local library problem in vs2017
Reply #3 - May 21st, 2018 at 8:17pm
Print Post  
Thanks for the update.

tip: If you right click a "library.properties" file there is a new menu item called "Publish Library". This copies the library to the arduino sketchbook/libraries folder so it becomes available to your other projects and the arduino ide. The old version is backed-up before copy.
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Local library problem in vs2017
Reply #4 - Jul 12th, 2018 at 9:49pm
Print Post  
Off-Topic replies have been moved to this Topic.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint