From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29378 invoked by alias); 7 Aug 2002 07:46:04 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 29362 invoked by uid 71); 7 Aug 2002 07:46:03 -0000 Date: Wed, 07 Aug 2002 00:46:00 -0000 Message-ID: <20020807074603.29361.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Lionel Champalaune Subject: Re: c++/7518: Problem on opening a shared library with Gcc3.1.1 Reply-To: Lionel Champalaune X-SW-Source: 2002-08/txt/msg00130.txt.bz2 List-Id: The following reply was made to PR c++/7518; it has been noted by GNATS. From: Lionel Champalaune 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 #include 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 #include void f() { std::ostringstream ost; ost << "toto"; const std::string s = ost.str(); } --------------2F5F7D234D49AC23BD540F4F--