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 How to link .a static library (Read 1975 times)
dj-fiorex
Newbies
*
Offline


Posts: 2
Joined: Oct 18th, 2017
How to link .a static library
Oct 18th, 2017 at 8:51pm
Print Post  
Hi, i`m using trial version of Visual Micro and it is perfect for my work! Now say i have a static library libMylib.a located in C:\lib and want to link this library to my Arduino project generated by Visual Micro, how can i archieve this? I saw that there is an option in vMicro -> Compiler -> Advanced and i put this information inside: 
Current configuration -> extra flags = -LC:\lib -lMylib
but nothing work! 
The library i want to link is the Invensense MPL Library precompiled for the same platform i use ARM Cortex M0+
Please help! Thanks!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to link .a static library
Reply #1 - May 24th, 2018 at 6:49pm
Print Post  
Hi,

Arduino does not work this way. The -I will find headers but will not compile or link files in the path. Arduino has a known set of paths.

In AS7 or Visual Studio with visual micro you can put .a files in project_name\libs folder

I will add it to the list to support user config of lib locations,

« Last Edit: May 24th, 2018 at 7:05pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint