News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Bug: Compiler Variable

Started by Wolf, July 29, 2008, 07:58:06 PM

Previous topic - Next topic

Wolf

When adding new files, the compiler variable defaults to CPP, even in a strict C project, where CC would make more sense.

Quote from: stahta01 on July 28, 2008, 03:14:23 AM
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.