Looked for a bit, but couldn't find anything that resembles this issue. I'm working on an STM32 C project using CodeSourcery/OpenOCD/GDB with an Eclipse makefile project. The project builds fine without any errors from CodeSourcery's gcc, but the Indexer is flagging a part of the code as a "syntax error". Here is the code in question:
static const MyStruct MyStructInst =
#if SWITCH == 1
where code*.c resembles (just assume this matches the struct members):
I know that the struct declaration is within this scope, since I declare an uninitialized variable of the same type right before it. I'm thinking the Indexer is choking on the included source file, but I don't really understand why. Any ideas?
[Updated on: Fri, 05 October 2012 17:28]
Report message to a moderator