From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31438 invoked by alias); 23 Jan 2002 10:15:16 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 31368 invoked from network); 23 Jan 2002 10:15:13 -0000 Received: from unknown (HELO mail.web-solutions.dk) (212.130.48.54) by sources.redhat.com with SMTP; 23 Jan 2002 10:15:13 -0000 Received: from there ([80.62.45.76]) by mail.web-solutions.dk (Merak 4.10.050) with SMTP id JGB36881 for ; Wed, 23 Jan 2002 11:14:33 +0100 Content-Type: text/plain; charset="iso-8859-1" From: Israel Alvarez Reply-To: ia@innovatech.dk Organization: InnovaTech To: "GNU GCC help list" Subject: Linking old library Date: Wed, 23 Jan 2002 02:15:00 -0000 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SW-Source: 2002-01/txt/msg00226.txt.bz2 Message-ID: <20020123021500.oORFFi8d-xsUZEBU1Q9M5ncaWngO1B785twURNDnI8Q@z> Hi all!, I'm using g++v3.0.2 to compile my app. I need to link my app. to the old libc-2.2.2.so instead of the libc-2.2.4.so that g++v3.0.2 uses as default. I compile the app as follows: ("Hello World app") >g++3 main.cpp -lc-2.2.2 but I get: >/usr/lib/gcc-lib/i386-redhat-linux/3.0.2/../../../libc-2.2.2.so: undefined reference to `_dl_debug_files@GLIBC_2.2' >/usr/lib/gcc-lib/i386-redhat-linux/3.0.2/../../../libc-2.2.2.so: undefined reference to `_dl_debug_impcalls@GLIBC_2.0' >/usr/lib/gcc-lib/i386-redhat-linux/3.0.2/../../../libc-2.2.2.so: undefined reference to `_dl_debug_message@GLIBC_2.0' >collect2: ld returned 1 exit status Could anyone help me with this? ia