try: g++ -o hello hello.cpp (gcc is only for c programs)
ciao >From: Steven Boothe <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: [newbie] MDK8.2: compile hello.cpp: cannot exec 'cpp0': No such... >Date: Thu, 23 May 2002 14:30:45 -0700 > >Hello everyone: > >I seem to have a problem compiling a simple hello.cpp program: >""""""""""""""""""""""""" >#include <iostream.h> >int main() >{ > cout << "Hello, world." << endl; > return 0; >} >""""""""""""""""""""""""" > >The error I get is: > >[sboothe@poretz sboothe]$ gcc hello.cpp >gcc: installation problem, cannot exec `cpp0': No such file or directory >[sboothe@poretz sboothe] > >For the record here is the output of some hopefully meaningful commands: > >[steven]$ rpm -qa | grep gcc && rpm -qa | grep gcc && rpm -qa | grep libstd >gcc3.0-cpp-3.0.4-2mdk >gcc-2.96-0.76mdk >gcc-c++-2.96-0.76mdk >libgcc3.0-3.0.4-2mdk >gcc3.0-cpp-3.0.4-2mdk >gcc-2.96-0.76mdk >gcc-c++-2.96-0.76mdk >libgcc3.0-3.0.4-2mdk >libstdc++3.0-devel-3.0.4-2mdk >libstdc++2.10-2.96-0.76mdk >libstdc++3.0-3.0.4-2mdk >libstdc++2.10-devel-2.96-0.76mdk >[steven]$ > >Thanks to anyone who read this message. > >Peace, > >Steven > > > >Want to buy your Pack or Services from MandrakeSoft? >Go to http://www.mandrakestore.com _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com