Author Topic: Bug: Compiler Variable  (Read 3304 times)

Offline Wolf

  • Multiple posting newcomer
  • *
  • Posts: 30
Bug: Compiler Variable
« on: July 29, 2008, 07:58:06 pm »
When adding new files, the compiler variable defaults to CPP, even in a strict C project, where CC would make more sense.

I was able to duplicate what I think the problem is on both 8.02 and current SVN 5170.

Steps to duplicate are
1. File -> New -> Project
2. Pick "Console Application"
3. Select C language
4. Create an header file with .h extension
5. Use "Add Files" to add header
6. Look at the "Compiler Variable" it is CPP when CC makes more sense.
    Right click on header file;
    Properties
    advanced Tab

Tim S

PS, The problem is to deep in Code::Blocks for me. Looks like an SDK patch is needed to the cbProject::AddFile. You might try submitting it as an bug. Please include directions to duplicate the problem.