I'm not sure which build option will help me solve this problem. Initializations in for loops causes this error when I try to run a c program on my unix machine. I was told that: This can be fixed by changing the C Language Dialect option in your project's build settings to C99 or GNU99 how do i do this?
That depends entirely on what compiler you are using. You would have to check the documentation to see what command line switch controls the C dialet. In GCC, for instance, it would be -std=c99. You could also post the code with the error. Perhaps the solution is something more simple.
I think I've once had a problem similar to this. My guess is you are trying to do something like: for (int a = 0; a < 10; a ++) Code (markup): If that's the case, changing this to: int a; for (a = 0; a < 10; a ++) Code (markup): May solve your problem.