This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
simple c++ compiler error, need help
- From: eric <fsshl at centurytel dot net>
- To: newbie at linux-mandrake dot com, gcc-help at gcc dot gnu dot org, expert at linux-mandrake dot com, cooker at linux-mandrake dot com
- Date: Wed, 02 Jan 2002 17:48:07 -0500
- Subject: simple c++ compiler error, need help
- Organization: onlineexchange
Dear gcc-help programers:
I had simple c++ program
[root@localhost c_program]# cat hello.cpp
#include <iostream.h>
int main() {
int i=0;
char message[] = {'H', 'e', 'l', 'l', 'o', '\0'};
for ( ; i<5; i++)
{
cout << *(message+i);
}
cout << endl;
return 0;
}
I should work(it work before), but now g++ compiler show it is error by
[root@localhost c_program]# g++ hello.cpp
Can't exec "/usr/bin/g++-2.96": No such file or directory at
/usr/lib/perl5/5.6.0/IPC/Open3.pm line 217.
open3: exec of /usr/bin/g++-2.96 hello.cpp failed at /usr/bin/g++ line
211
please help
sincere, and thanks in advance
eric, fsshl@centurytel.net