From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24947 invoked by alias); 6 May 2003 18:06:03 -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 24899 invoked by uid 71); 6 May 2003 18:06:02 -0000 Date: Tue, 06 May 2003 18:06:00 -0000 Message-ID: <20030506180602.24898.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Phil Edwards Subject: Re: libstdc++/10633: linking error with stdc++ library Reply-To: Phil Edwards X-SW-Source: 2003-05/txt/msg00401.txt.bz2 List-Id: The following reply was made to PR libstdc++/10633; it has been noted by GNATS. From: Phil Edwards To: Philip Cheng Cc: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: libstdc++/10633: linking error with stdc++ library Date: Tue, 6 May 2003 14:04:16 -0400 On Tue, May 06, 2003 at 09:30:40AM -0400, Philip Cheng wrote: > > gcc -c test.cpp > > g++ -lc -lstdc++ -shared test.o -o test.so If you are trying to make a shared library, the commands are gcc -c -fPIC test.cpp g++ -shared -fPIC test.cpp -o test.so as described in the FAQ here: http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#4_4_dlsym -- If ye love wealth greater than liberty, the tranquility of servitude greater than the animating contest for freedom, go home and leave us in peace. We seek not your counsel, nor your arms. Crouch down and lick the hand that feeds you; and may posterity forget that ye were our countrymen. - Samuel Adams