This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Linking old library
- From: Israel Alvarez <ia at innovatech dot dk>
- To: "GNU GCC help list" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 17 Jan 2002 18:33:03 -0500
- Subject: Linking old library
- Organization: InnovaTech
- Reply-to: ia at innovatech dot dk
Hi all!,
I'm using g++v3.0.2 to compile my app. I'm using also libstdc++v3. The
problem is that I need to link my app. to the olds libc-2.2.2.so and
libm-2.2.2.so instead of the libc-2.2.4.so and libm-2.2.4.so that g++v3.0.2
uses as default.
I compile the app as follows:
>g++3 main.cpp -lc-2.2.2 -lm-2.2.2
but I get the nice:
>/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?
I'm sure is because I'm doing something relly stupid, but I have no idea
about linking and stuff like that.
Waitting for news... (good I hope :-) )
ia