CANbus multiple compile errors. Help

Sure! I tried to copy and paste the list but could not get that to work, i will list a few:

First error:

ecu_reader_logger.cpp In Function 'void logging()':
ecu_reader_logger: 262: error 'class Sdfile' has no member named 'write error'

So, I comment out the instance in the sketch (//) of 'write error'

And re compile. then i get a very large string of errors, starting with :

......\CAN\CAN.cpp:1:17: SPI.h : no such file or directory

OK, so i look and the SPI.h library has not been included in the sketch, so I include it.

Recompile, and get yet another long string of errors.

Most of them say " undefined reference to 'canbus' "

this is where i kinda gave up, acording to the posts on the CAN-BUS sheild page at sparkfun, several people have got this working and did not mention having to do all this, so i must have done something wrong. hoping to find out what.

Thanks a ton.