News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Possible Bug when compiling .c file

Started by GTM, May 02, 2008, 11:40:42 PM

Previous topic - Next topic

GTM

When I try to compile a file by itself (that is without creating a project), it always compiles as C++ for.cpp and .c files. Shouldn't .c files compile as C programs, instead of C++ programs? The only way to compile a C program as a C program (without messing with the toolchain executables) is to create a project and specify it as a C project. Is this a bug? Is there a setting? Two different computers with Code::Blocks do this, so it's not a fluky think on just one machine.