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 Static Libraries to Arduino Projects (Read 4620 times)
SeanT
Newbies
*
Offline


Posts: 7
Joined: Oct 15th, 2015
Adding Static Libraries to Arduino Projects
Oct 24th, 2015 at 10:21pm
Print Post  
Hi,
I am trying to write an Arduino program that uses IMU9250. The sensor firmware comes with a static library (.a) that needs to be included in my project. I am using Visual Studio Community version but I can also use Atmel Studio 7.0. I need help including this static library so I can use its functions in my program. Can you please help?
Sean
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adding Static Libraries to Arduino Projects
Reply #1 - Oct 24th, 2015 at 10:52pm
Print Post  
Hi,

It there is a real arduino library version of the IMU9250 then it's best to use that and install it using the standard library install tools/locations.

I expect you can also add the library using the "Compiler>Extra flags" in the visual micro project properties however you won't get any intellisense for the lib as .a
  
Back to top
IP Logged
 
SeanT
Newbies
*
Offline


Posts: 7
Joined: Oct 15th, 2015
Re: Adding Static Libraries to Arduino Projects
Reply #2 - Oct 24th, 2015 at 11:25pm
Print Post  
Tim, Thanks for the answer. I have not done this before, do you know how to do it through Compiler>extra flags ? 
Sean
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adding Static Libraries to Arduino Projects
Reply #3 - Oct 24th, 2015 at 11:26pm
Print Post  
Can you give me a url to the library source code location?
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adding Static Libraries to Arduino Projects
Reply #4 - Oct 24th, 2015 at 11:29pm
Print Post  
by the way if you switch on visual micro>compiler verbose you can grab the output trace. Part of the build includes the core.a so you can see the format.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint