This page exists just to remind myself that this is a possible issue and it has nothing to do with linker flags or source files not getting compiled.
Remember to wrap your C files with:
#ifdef __cplusplus
extern "C" {
#endif
// C code here
#ifdef __cplusplus
}
#endif
(or #include
s in C++ files) with:
extern "C"{
// #include "header.h"
}