Is there a C++ version of the FatFS library?

I am trying to incorporate fatfs into a cpp project and I havent been able to compile the project even though I added the

#ifdef __cplusplus
extern...