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

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 :d


Arduino Forum > Using Arduino > Programming Questions > Need help to fix library - error undefined reference to


arduino

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62