Saving Libraries

If I download various libraries, is it important which folder should I save them in? I’d like to use the library for sending SMS messages and a few others but new to this. Thank You.

put library the directory in the hardware/libraries directory. See the bottom of this page for more detail.


Thanks for that! I hadnt noticed that when looking.

Maybe this is the wrong place, but anyway:

How do I add new a library to the command-line tool?
I have copied the Servo-folder from the 0013-IDE hardware/libraries-folder to the core-folder. (I am using

I have adapted the servo-sweep example-sketch to the commandline makefile environment like this:

#include <WProgram.h>
Servo myservo;  // create servo object to control a servo 

int pos = 0;    // variable to store the servo position 

void setup()
      myservo.attach(9)      ;

void loop();

int main()

      for (;;)

      return 0;

void loop()
      for(pos = 0; pos < 180; pos += 1)
      for(pos = 180; pos >= 1; pos -= 1)

servo.h has been included in WProgram.h.
#include <Servo/Servo.h> (I am running Ubuntu 8.10 hence the ‘/’)
This sketch produces this error-output:

/tmp/ccIS0NHL.o: In function `global constructors keyed to myservo':
ArTest.cpp:3: undefined reference to `Servo::Servo()'
/tmp/ccIS0NHL.o: In function `loop':
ArTest.cpp:30: undefined reference to `Servo::write(int)'
ArTest.cpp:36: undefined reference to `Servo::write(int)'
/tmp/ccIS0NHL.o: In function `setup':
ArTest.cpp:9: undefined reference to `Servo::attach(int)'
make: *** [ArTest.elf] Fejl 1

What am I doing wrong?