Long story short, I'm writing a project in C, but for some reason Code::Blocks does not let it compile and run, despite the fact that the code is perfectly valid (or not, imma newb so don't hesitate to correct me).
Generally when creating new projects, I used console app, sometimes disabling the console if I decided to use some GUI. This time I started with "Empty Project", and pretty much everything went right - until I noticed that C::B applies C++ restrictions to my code, even though I'm writing entirety of the code in C, selected GCC compiler in build options for the project and even specified C99 standard in compiler flags.
Exact errors attached.
What I'm trying to do is to use arrays of dynamically specified size (instead of being specified in the code, or as a global variable, they should be passed as an argument to the funcion). It worked before in console apps (which, by the way, forced me to choose whether it was C or C++, guess now I know why), now it doesn't, and I doubt I have the time to make a workaround.
While it's technically a code problem, I'm pretty sure I can "fix" it by simply setting the Code::Blocks to apply correct compiler logic to the code, as it's already been proven to work.
Any help appreciated, thanks in advance. Looked on web, but all of the topics seem to be about the opposite - forcing C++ format/compiler instead of C.