From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18894 invoked by alias); 6 May 2003 14:26:02 -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 18798 invoked by uid 71); 6 May 2003 14:26:01 -0000 Date: Tue, 06 May 2003 14:26:00 -0000 Message-ID: <20030506142601.18797.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Wolfgang Bangerth Subject: Re: libstdc++/10633: linking error with stdc++ library Reply-To: Wolfgang Bangerth X-SW-Source: 2003-05/txt/msg00381.txt.bz2 List-Id: The following reply was made to PR libstdc++/10633; it has been noted by GNATS. From: Wolfgang Bangerth To: Philip Cheng Cc: gcc-bugs@gcc.gnu.org, , , Subject: Re: libstdc++/10633: linking error with stdc++ library Date: Tue, 6 May 2003 09:22:03 -0500 (CDT) > g++ -lc -lstdc++ -shared test.o -o test.so There's no need for the two -l... switches. If you drop them, everything works fine. g++ will do all this stuff for you, there's no reason to make it more complicated than necessary! W. ------------------------------------------------------------------------- Wolfgang Bangerth email: bangerth@ices.utexas.edu www: http://www.ices.utexas.edu/~bangerth/