This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Linking old library


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]