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]

Is this bug in g++ /gcc-3.4.0 ?


Hollo!
I am Yuki Shimada.
This time , I had installed gcc-3.4.0 into my RedHat9.
And then,I had compiled "hello.cc" by using "g++". But cannot excute
"./a.out".   Compiler tells me a error.
(Incase of "hellp.c" complied by "gcc", "./a.out" can excute well.)

#1 error from g++
[yuki@localhost c++]$ g++ hello.cc
[yuki@localhost c++]$ ./a.out
./a.out: error while loading shared libraries: libstdc++.so.6: cannot
open shared object file: No such file or directory
[yuki@localhost c++]$
#2 my source code: see attachment of this mail.

Is this a bug ?
thank you.
epsoft@mint.ocn.ne.jp
Yuki Shimada

//hello.cc
#include<iostream>
using namespace std;
int main(){
  cout<<"Hello !"<<endl;
  return 0;
};

//
//[yuki@localhost c++]$ g++ hello.cc
//[yuki@localhost c++]$ ./a.out
// ./a.out: error while loading shared libraries: libstdc++.so.6:
//  cannot open shared object file: No such file or directory
//[yuki@localhost c++]$
//

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