On Fri, Mar 26, 1999 at 03:39:11PM +0100, Michel D�nzer wrote: > When building C++ apps, I often get errors like this when linking: > > [excerpt from kpackage 1.2.1 build] > > g++ -pipe -O2 -fsigned-char -Wall -s -o kpackage -L/usr/lib > -L/usr/local/kde/lib > -L/usr/X11R6/lib [lotsa object files] -lkfile -lkfm -lkdeui > -lkdecore -lqt -lX11 -lXext -lrpm -ldb -lz -Wl,--rpath -Wl,/usr/local/kde/lib > -Wl,--rpath -Wl,/usr/X11R6/lib > /usr/lib/libstdc++.so: undefined reference to `_IO_proc_open@@GLIBC_2.0' > /usr/lib/libstdc++.so: undefined reference to `_IO_proc_close@@GLIBC_2.0' > collect2: ld returned 1 exit status > make[3]: *** [kpackage] Error 1 > make[3]: Leaving directory `/usr/src/kpackage-1.2.1/kpackage' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/usr/src/kpackage-1.2.1/kpackage' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/src/kpackage-1.2.1' > make: *** [all-recursive-am] Error 2 > > I have the latest libc, egcs, binutils and libstdc++2.9 packages. At first I > thought it was due to old libraries linked against old libc/libstdc++ > versions, but now everything is rebuilt with what I have. > > Anyone has an idea what's going wrong?
Well, you have some leftovers. There should not BE a /usr/lib/libstdc++.so! Do you have libstdc++2.8-dev installed? If so, remove it. Do you have libstdc++2.9-dev installed? If not, install it. Does any package (dpkg -S /usr/lib/libstdc++.so) claim that file? Dan /--------------------------------\ /--------------------------------\ | Daniel Jacobowitz |__| CMU, CS class of 2002 | | Debian GNU/Linux Developer __ Part-Time Systems Programmer | | [EMAIL PROTECTED] | | [EMAIL PROTECTED] | \--------------------------------/ \--------------------------------/

