Espressif spi library

Oh. Is there no way that I can make use of .cpp file headers in my C code by using extern keywords etc.,?