public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: yuki shimada <epsoft@mint.ocn.ne.jp>
To: gcc-help@gcc.gnu.org
Subject: Is this bug  in g++ /gcc-3.4.0 ?
Date: Mon, 10 May 2004 01:40:00 -0000	[thread overview]
Message-ID: <1084150900.3452.12.camel@localhost.localdomain> (raw)

[-- Attachment #1: Type: text/plain, Size: 597 bytes --]

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


[-- Attachment #2: hello.cc --]
[-- Type: text/x-c++, Size: 331 bytes --]

//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++]$
//

             reply	other threads:[~2004-05-10  1:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-10  1:40 yuki shimada [this message]
2004-05-10 14:00 ` llewelly
     [not found]   ` <1084241684.3170.2.camel@localhost.localdomain>
2004-05-11  4:58     ` Is this bug in g++ /gcc-3.4.0 #3? llewelly
2004-05-10 14:04 ` Is this bug in g++ /gcc-3.4.0 ? Claudio Bley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1084150900.3452.12.camel@localhost.localdomain \
    --to=epsoft@mint.ocn.ne.jp \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).