Author Topic: Possible Bug when compiling .c file  (Read 2678 times)

GTM

  • Guest
Possible Bug when compiling .c file
« on: May 04, 2008, 09:18:36 pm »
I posted this in the general forum, but maybe it was the wrong place.

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.

Offline petsagouris

  • Single posting newcomer
  • *
  • Posts: 5
    • arhitektonas
Re: Possible Bug when compiling .c file
« Reply #1 on: November 12, 2008, 08:33:24 pm »
I can suggest this:
  • right-click on a specific file and choose properties
  • go in the Advanced tab
  • change the "Compiler available" field to "CC" from "CPP"
I don't know if this is any help at all,...