i have download a simple demo and built it on two different systems.
actually i build SDL on systems.
the first system is a plain stock mandrake 9.2 system.
the second is a uclibc gentoo system.
on the mandrake system
ldd /usr/lib/libSDL-1.2.so.0.7.1
gives:
libm.so.6 => /lib/i686/libm.so.6 (0x40086000)
libdl.so.2 => /lib/libdl.so.2 (0x400a9000)
libaudio.so.2 => /usr/X11R6/lib/libaudio.so.2 (0x400ac000)
libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x400c2000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40117000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x401fa000)
libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40209000)
libc.so.6 => /lib/i686/libc.so.6 (0x40259000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40389000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40392000)
on the glibc gentoo system
ldd /usr/lib/libSDL-1.2.so.0.7.1
libstdc++.so.5 => not found (0x00000000)
libm.so.0 => /lib/libm.so.0 (0x00000000)
libdl.so.0 => /lib/libdl.so.0 (0x00000000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00000000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x00000000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00000000)
libc.so.0 => /lib/libc.so.0 (0x00000000)
/lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x00000000)
why libstdc++ … this one causes me the most problems
when i try to compile the demo as c files (gcc)
when i compile the same ass cc (g++) the problems go away.
(some sharpy wlll now doubt say hey just compile them as
c++ files!) but what is going on? why is libstdc++ showing up.
jim