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 library not compiled or linked (Read 2726 times)
BuzzB
Newbies
*
Offline


Posts: 3
Joined: Jan 3rd, 2016
library not compiled or linked
Jan 3rd, 2016 at 10:44pm
Print Post  
On Windows, using the Esp8266 Arduino setup. Using the very latest Visual Micro plugin version. 

  • Added a library to "My Documents/Arduino/Libraries" folder. 
  • Using Arduino IDE 1.6.7 I'm able to compile, link and run an example from the library no problem.
  • Using Visual Micro in Visual Studio, add that library to my project using "Add Library | User" menu in the Visual Micro tool bar. Seems to work fine. Library's include is added to my "base" ino file.
  • My project's source files compile fine. References to functions in the library compile, as the include is clearly found.
  • WILL NOT LINK. Complaints about missing code. As if the libs cpp files are not being compiled and linked in.


Anyone got any ideas? Did I miss something in the latest release notes?

Thanks,
Buzz
  
Back to top
 
IP Logged
 
BuzzB
Newbies
*
Offline


Posts: 3
Joined: Jan 3rd, 2016
Re: library not compiled or linked
Reply #1 - Jan 4th, 2016 at 1:03am
Print Post  
Just tested my project in standard Arduino IDE and it builds fine.
  
Back to top
 
IP Logged
 
BuzzB
Newbies
*
Offline


Posts: 3
Joined: Jan 3rd, 2016
Re: library not compiled or linked
Reply #2 - Jan 4th, 2016 at 1:17am
Print Post  
One more data point...

I had "installed" the library by going to its GitHub page, downloading the zip, and unzipping into My Documents/Arduino/Libraries.

Again... this worked fine for Arduino IDE 1.6.7, and VS Micro seemed to see it given my experience as described in my first post... it just wouldn't compile and link in the library's cpp files.

But...

I removed that directory from my library directory, and instead installed the library using the Aurduino IDE's "manage libraries" functionality. This resulted in the same exact folder in "My Documents/Arduino/Libraries" folder, but after doing the VS Micro properly build my project.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: library not compiled or linked
Reply #3 - Jan 4th, 2016 at 3:19am
Print Post  
My test lib linked okay

It's interesting you see the library on the user libs menu. If there was a problem with your config I wouldn't expect it to show up at all.

Can you please zip and email the library so I can try it. email to info[at]visualmicro.com

Also please replicate the problem but switch on "tools>options>visual micro>compiler>show build properties" and "verbose"

Then click "Build>Clean Solution", then "Build" and email the output. Thanks very much
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint