Thank you for the quick reply. I somehow missed that, however already tried adding extern "C"
guards. Tried this solution too, but I still get a long list of C++ related warnings.
I ended up suppressing the warnings and it now compiles fine, although not the ideal solution as I wouldn’t normally compile my esp-idf projects for C++.
Thank you very much for your help!