simple c++ compiler error, need help
eric
fsshl@centurytel.net
Wed Jan 2 21:45:00 GMT 2002
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
More information about the Gcc-help
mailing list