McNeight / CAN_Library

Multiplatform Arduino library for supporting the native CAN controller on Due (SAM3X) and Teensy 3.1 (K2X) as well as MCP2515 through SPI
Other
95 stars 43 forks source link

Not compile for AT90CAN #16

Open EarlVadim opened 3 years ago

EarlVadim commented 3 years ago

Hello. I tried to compile the "Recieve CAN Messages" example for AT90CAN board and got errors

C:\Users\VADIM\AppData\Local\Temp\arduino_build_445438\sketch\ReceiveCANMessages.ino.cpp.o: In function `CAN_AT90CAN::begin(unsigned long)':
C:\Users\VADIM\Documents\Arduino\libraries\CAN_Library-master/CAN_AT90CAN.h:180: undefined reference to `CAN_AT90CAN::begin(unsigned long, unsigned char)'
C:\Users\VADIM\AppData\Local\Temp\arduino_build_445438\sketch\ReceiveCANMessages.ino.cpp.o: In function `readMessage()':
C:\Users\VADIM\AppData\Local\Temp\arduino_modified_sketch_693090/ReceiveCANMessages.ino:50: undefined reference to `CAN_AT90CAN::available()'
C:\Users\VADIM\AppData\Local\Temp\arduino_modified_sketch_693090/ReceiveCANMessages.ino:52: undefined reference to `CAN_AT90CAN::read()'
C:\Users\VADIM\AppData\Local\Temp\arduino_build_445438\libraries\CAN_Library-master\CAN_AT90CAN.cpp.o: In function `CAN_AT90CAN::CAN_AT90CAN()':
C:\Users\VADIM\Documents\Arduino\libraries\CAN_Library-master/CAN_AT90CAN.cpp:73: undefined reference to `vtable for CAN_AT90CAN'
C:\Users\VADIM\Documents\Arduino\libraries\CAN_Library-master/CAN_AT90CAN.cpp:73: undefined reference to `vtable for CAN_AT90CAN'
collect2.exe: error: ld returned 1 exit status

What I can do for fix it?