From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin v. Loewis" To: d92-foh@nada.kth.se Cc: gcc@gcc.gnu.org Subject: Re: Troubles with -fno-vtable-thunks recompilation.... Was: Strange C++ behaviour Date: Thu, 30 Sep 1999 18:02:00 -0000 Message-ID: <199909142102.XAA00709@mira.isdn.cs.tu-berlin.de> References: X-SW-Source: 1999-09n/msg00556.html Message-ID: <19990930180200.ojL9ACFOMCIhERuEfmpsoLKgrEj_NqRBoVmFguJ-EO8@z> > /usr/local/gcc/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/libstdc++.a(stdstrbufs.o)(.data+0xb4): > undefined reference to `filebuf virtual table' > [...] > I assume that I in some way must tell gcc to use the new glibc > library when compiling new stuff but I am completely lost here..... > > Am I on the right track? Any help would be greatly appreciated! If vtable thunks are not used, mangling of the vtable changes: It either starts with '__vt.' or '__vt_'. It appears that libstdc++ requires a different symbol than you have available. This, in turn, could result from an incorrect contents of _G_config.h, which explains the C++ vtable mechanism to C applications. You'll probably have numerous copies of a file with that name. Make sure you are using the right one consistently. The one that comes with glibc is probably wrong if you are not using vtable thunks and needs to be replaced. Regards, Martin