Well I have changed the Wprogram.h with Arduino and the spi with SPI.h and the corresponding errors were removed. But the rest of the errors still remain.
Anyone who has worked with this code or anybody who can help me why the errors are coming. Am i missing something ?