Hello all, just having a basic problem with CB, any help is much appreciated.
(Running : WinXP Pro 32bit, MinGW 3.4.2, CB Nightly ( August 14 ) )
I am currently just trying to test out CB, and compile some basic program, however it is not working.
Error : warning: command line option "-std=c99" is valid for C/ObjC but not for C++
The file is called 'file.c' and is written in correct C (as far as syntax goes) as tested on other computers (not with CB, just with command line GCC). This is a source file, not a project, and was created as a 'C/C++ source' file from the 'new' menu.
After changing the toolchain line for 'C++ Compiler' from 'mingw32-g++.exe' to 'mingw32-gcc.exe' it compiles fine, with no problems. ( 'C Compiler' is 'mingw32-gcc.exe' or 'gcc.exe', changing it has no effect )
Normally i would not mind this, but as i use C and C++ i find it inconvenient to change the compiler each time.
Any help would be great,
Thanks,
AndrewVinci
Just as a side, i have used -Werror, however CB uses -Wfatal-errors. Out of curiosity, why the difference?
Edit : forgot to add what flags i am compiling with. Under 'Other Options' in 'Compiler and debugger settings' i have '-std=c99 -Wall -Werror -pedantic' (without the ' ')