This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

simple c++ compiler error, need help


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]