Teensy 3.1 + MPU 9250 Sparkfun

There is available arduino code online to run MPU 9250 sparkfun. So I was trying to run MPU9250BasicAHRS_I2C on arduino. I actually only tried compiling but it didn’t let me. I got the error saying “Error compiling for board Teensy 3.2/3.1.” Does anyone know why?

I am also trying to figure out how to hook up those two. This is the main page that I have been looking at:

https://learn.sparkfun.com/tutorials/mp … 1484529709 .

They show how to hook it up but not to Teensy. Would it be similar to teensy?

Thanks