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!

Well only thing I can think of is there might be some problem with your repositories.So may be you can install them again.Because some problems can arise because they are of same origin.
gcc is GNU Compiler Collection which has specific packages for compilation of C++ files which we call g++.

Thanks for that I'm going to try installing them again.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.