It is September 27, 2014, and I re-installed Code::Blocks a few weeks ago. I'm working pretty much exactly from the default, "normal" settings, and that includes using the GNU GCC Compiler to compile my projects. That being said, what is a good, clear list of steps to make Code::Blocks only compile C code, instead of C++ code?
In other words, assuming this is still a syntactical feature of pure C, if I insert a blank space at the very beginning of a source file, I do not want it to compile. I want gcc in Code::Blocks to behave
exactly as a pure C compiler, and nothing more.
From what I understand, using .c for all the file extensions doesn't work, and though I would be tempted to use one of the answers here:
http://forums.codeblocks.org/index.php?topic=15189.0;prev_next=nextI would prefer to first check and make sure. Simply running tests isn't an accurate enough way to find out if one of the answers on that thread works, that thread's a few years old, and some of the answers are not completely specific.
Thank you.