public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Lionel Champalaune <Lionel.Champalaune@sophia.inria.fr>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: c++/7518: Problem on opening a shared library with Gcc3.1.1
Date: Wed, 07 Aug 2002 00:46:00 -0000	[thread overview]
Message-ID: <20020807074603.29361.qmail@sources.redhat.com> (raw)

The following reply was made to PR c++/7518; it has been noted by GNATS.

From: Lionel Champalaune <Lionel.Champalaune@sophia.inria.fr>
To: gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org
Cc:  
Subject: Re: c++/7518: Problem on opening a shared library with Gcc3.1.1
Date: Wed, 07 Aug 2002 09:44:20 +0200

 This is a multi-part message in MIME format.
 --------------2F5F7D234D49AC23BD540F4F
 Content-Type: text/plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 The file attachments didn't work.
 here is the files needed..
 
 
 Regards
 Lionel Champalaune
 
 gcc-gnats@gcc.gnu.org wrote:
 > 
 > Thank you very much for your problem report.
 > It has the internal identification `c++/7518'.
 > The individual assigned to look at your
 > report is: unassigned.
 > 
 > >Category:       c++
 > >Responsible:    unassigned
 > >Synopsis:       Problem on opening a shared library with Gcc3.1.1
 > >Arrival-Date:   Wed Aug 07 00:36:04 PDT 2002
 --------------2F5F7D234D49AC23BD540F4F
 Content-Type: text/plain; charset=us-ascii;
  name="Commandg++"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="Commandg++"
 
 g++ -c -o Testlib.lo Testlib.C 
 g++ -shared Testlib.lo -Wl,-soname -Wl,libTestlib.so -o libTestlib.so
 g++ Testmain.C -ldl
 ./a.out
 
 --------------2F5F7D234D49AC23BD540F4F
 Content-Type: text/plain; charset=us-ascii;
  name="Commandgcc"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="Commandgcc"
 
 g++ -c -o Testlib.lo Testlib.C 
 gcc -shared Testlib.lo -Wl,-soname -Wl,libTestlib.so -o libTestlib.so
 g++ Testmain.C -ldl
 ./a.out
 
 --------------2F5F7D234D49AC23BD540F4F
 Content-Type: text/plain; charset=us-ascii;
  name="Testmain.C"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="Testmain.C"
 
 #include <dlfcn.h>
 #include <iostream>
 
 int
 main()
 {
     void *handle = dlopen ("./libTestlib.so", RTLD_NOW);
     char *error;
     if ((error = dlerror())!=0) {
       std::cerr << "      Error: " << error << std::endl;
       return 1;
     }
 }
 
 --------------2F5F7D234D49AC23BD540F4F
 Content-Type: text/plain; charset=us-ascii;
  name="Testlib.C"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="Testlib.C"
 
 
 #include <string>
 #include <sstream>
 
 void f()
 {
 	std::ostringstream ost;
 	ost << "toto";
 	const std::string s = ost.str();
 }
 
 
 
 --------------2F5F7D234D49AC23BD540F4F--
 


             reply	other threads:[~2002-08-07  7:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-07  0:46 Lionel Champalaune [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-09-13 16:21 nathan
2002-08-07  0:36 lionel.champalaune

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=20020807074603.29361.qmail@sources.redhat.com \
    --to=lionel.champalaune@sophia.inria.fr \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@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).