On 01/25/2012 12:25 AM, torhu wrote:
On 24.01.2012 03:35, Trass3r wrote:
It's really annoying. clang++ gives a lot of warnings and IDEs are
confused as well.
Most compilers have switch a for specifying which language to compile as.
That's not the point. If a project uses C++, why give the files an
extension of ".c"? I don't see any benefits what so ever from doing so
and I am not aware of what compiler will only take in files with ".c"
extensions.
While most C++ compilers do provide such a switch, it can easily be
avoided by simply changing the file extension and let the compiler
determine what type of data it contains (which is the purpose of a file
extension in the first place).