Pages: [1]   Go Down
Author Topic: linking .a library files  (Read 530 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

Is there anyway to have the Arduino IDE link against a .a file? I have some custom libraries (.a files) and I would like to link these when compiling with the Arduino IDE.

Sam
Logged

Bonn, Germany
Offline Offline
God Member
*****
Karma: 1
Posts: 903
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

i dont know how to do that in the arduino-ide, but in the avr-project-ide i think to recall an options screen where you can add .a libraries to a project.
Logged

Believe me, Mike, I calculated the odds of this succeeding against the odds I was doing something incredibly stupid[ch8230] and I went ahead

0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The Arduino-Project-IDE looks interesting, though I am more interested in trying to link .a (libraries) in the standard Arduino IDE.

I would love to know if there is a way to do this.

Thanks,
Sam



Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 11
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

There isn't currently.  Do you have the source code to the .a?  You could link it from the .c / .cpp files.  Or even .o files should work, I think.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have the source code since I created the .a files. It is just more efficient if I can use just the single .a file than all the source files. Do you know if there are there plans to make this an option?

Thanks,
Sam
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 11
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Not in the near term.  The source code to the core, libraries, and your sketch are all recompiled every time.  It's not efficient, but so far, it's been fine.  It makes it easier to modify the code on the fly.  
Logged

Pages: [1]   Go Up
Jump to: