Teensy and Arduino Leonardo code share

I tried to add #include, but appeared a lot of error.

You tried to include what? What errors appeared?

Teensy devices can be programmed using the Arduino IDE, but libraries developed specifically for the Teensy can be expected to operate with other Arduino products.