Other compiles/IDE's dont have this problem (like DevCpp)..this might be because they force all sources to be compiled as c++..not sure if there is an option like that in CB as I just started with it.
Well, in other IDEs you must select in the project options whether this is a C or C++ project. In C::B you don't have to. It compiles files based on their type.
This is the "correct" behaviour because it allows you to select per-file how to compile it (contrary with other IDEs).
You could also try setting the compiler var to CC in main.cpp's properties. This would compile it with the C compiler...
This is however, rather...irritating.
Depends on how you look at it. In general, it's not wise to mix and match C and C++ files. If you have to, put them in different libs. And don't forget that this IDE has an open architecture which will allow it (at some point

) to work with languages other than C/C++. How would a "Project is C/C++" option in project options seem to someone working with Python (for example), when that time comes?
