I am using gcc on Suse Linux Enterprise Server 10 to compile my C++ source files. The problem I have is that when I invoke the command
g++ source_file.cpp
the file source_file.cpp is compiled as a C source file.
I realized the problem when I was trying to set up wxPython on my system since the .ccp source files on wxPython sources were being compiled as C source files thus generating countless lines of C errors .
I have tried to solve it but no progress so far.
Any help will be highly appreciated!