The compiler I’m using (IAR embedded workbench for ARM) requires me to use extern “C” declaration.
Basically, my code would look like this:
#include "foo.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
Actual code
*/
#ifdef __cplusplus
}
#endif
ST2 recognizes the file as C files (and that’s correct), but it ignores everything within the extern “C” declaration, and thus all symbols declared are missing from Ctrl+R key binding.
Any way to overcome this issue?
Thanks.
I’ve attached a sample code, try to navigate it with cmd+r/ctrl+r; now comment extern “C” and try to navigate again, it works.
main.c.zip (321 Bytes)