Need help to fix library - error undefined reference to
hello,
i create small library access spi 25lc1024 memory chip (see gvi25lc1024.zip)
my code follow
when try compile
i have error results did not me solve it.
can 1 help?
i create small library access spi 25lc1024 memory chip (see gvi25lc1024.zip)
my code follow
code: [select]
#include <spi.h>
#include <gvi25lc1024.h>
#include "structure.h"
#define arrsize 30
byte idx;
void setup()
{
serial.begin(19200);
ddrc |= b00001110; //set pins 1-3 output
starsmem.init();
}
void loop()
{
}
when try compile
code: [select]
loadstarstomemory.cpp.o: in function `setup':
d:\arduionos\arduino-1.0.4/loadstarstomemory.ino:619: undefined reference `starsmem'
d:\arduionos\arduino-1.0.4/loadstarstomemory.ino:619: undefined reference `starsmem'
i have error results did not me solve it.
can 1 help?
finaly, forgot add in cpp
gvi25lc1024 starsmem;
thanks![cheesy :d](https://forum.arduino.cc/smileys/arduino/cheesy.gif)
gvi25lc1024 starsmem;
thanks
![cheesy :d](https://forum.arduino.cc/smileys/arduino/cheesy.gif)
Arduino Forum > Using Arduino > Programming Questions > Need help to fix library - error undefined reference to
arduino
Comments
Post a Comment