I just installed arduino-0004 and am having trouble getting custom libraries to work. I wrote one of my own and was having trouble, so I went back to basics and tried to use the Matrix library that's included with the package. Here is the code:
#include <Matrix.h>
void setup()
{
}
void loop()
{
delay(1000);
}
Notice that I am not doing anything witht the library in the code... I just include it. When I compile, I get this:
lib\targets\libraries\Matrix\Matrix.o: In function `Matrix::write(unsigned char, unsigned char, Sprite)':
/cygdrive/c/Documents and Settings/davin/My Documents/electronics/arduino-0004/lib\targets\libraries\Matrix\Matrix.cpp:202: undefined reference to `Sprite::read(unsigned char, unsigned char) const'
/cygdrive/c/Documents and Settings/davin/My Documents/electronics/arduino-0004/lib\targets\libraries\Matrix\Matrix.cpp:201: undefined reference to `Sprite::width() const'
/cygdrive/c/Documents and Settings/davin/My Documents/electronics/arduino-0004/lib\targets\libraries\Matrix\Matrix.cpp:200: undefined reference to `Sprite::height() const'
It seems like OTHER libraries (in this case Sprite) that the library uses are not getting included in the linker script. I get a similar effect with my custom library, but in this case I can call the class constructor of the class that I am defining in my cpp file, but then when I try to actually call a method within that class it gives me the same "undefined reference to..." error.
Help? Thanks!