C++ source file being compiled as C source file

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2008
Posts: 97
Reputation: sureronald is an unknown quantity at this point 
Solved Threads: 16
sureronald sureronald is offline Offline
Junior Poster in Training

C++ source file being compiled as C source file

 
0
  #1
Jul 15th, 2009
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!
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 476
Reputation: csurfer is just really nice csurfer is just really nice csurfer is just really nice csurfer is just really nice csurfer is just really nice 
Solved Threads: 76
csurfer's Avatar
csurfer csurfer is offline Offline
Posting Pro in Training

Re: C++ source file being compiled as C source file

 
0
  #2
Jul 15th, 2009
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++.
I Surf in "C"....
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 97
Reputation: sureronald is an unknown quantity at this point 
Solved Threads: 16
sureronald sureronald is offline Offline
Junior Poster in Training

Re: C++ source file being compiled as C source file

 
0
  #3
Jul 15th, 2009
Thanks for that I'm going to try installing them again.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC