I have installed Code::Blocks on my Pi running Raspian Jesse and configured the compiler options correctly and had it working on one card but I'm writing an article on setting up an development environment on the Pi and enter the following code to test the install;
#include <stdio.h>
int main()
{
printf("Hello World!");
return 0;
}
and when I compile it I get the following error;
Syntax error: "(" unexpectedI can can compile and run from command line so I know the gcc environment is set up correctly.
There's nothing in the build text that shows an "(" !
I'm thinking there may be something in the make file?
Funny part about it is I went back to the card that it was working on and tried to rebuild it and it gives the same error so now I'm really stumped.