In a C++ project including C header inside of an extern "C" block is not recognized in the editor. The code compiles just fine, but all of the code using the symbols in those header files show as error. Also the editor will give the option to auto add the header file outside of the extern "C". This solves the errors in the editor, but then the code will not link because of name mangling. It seems that CLion does not properly understand extern "C" code blocks. For example, I have a C++ application that is using ffmpeg and contains the following include section:
// ffmpeg includes
Since the ffmpeg libraries are all C, you must include them from inside an extern "C" block or you will face linker issues.