Fons Rademakers writes: > Hi Pasha, > > what is the status of this g++ bug? I use g++ all the time in > -g and -O mode without problems. Does the bug persist when you > remove the (redundant) inline keyword? I never use "inline" for > implicit inline functions (maybe thereby avoiding this problem > which shows only in that case). > > Cheers, Fons. > -------------------------------------------------------------------------------- Hi Fons, It doesn't matter whether or not word "inline" is present - problem still persists. Jarek Grebieszkow (a lot of thanks to him!) posted to ROOTTALK a workaround. I just repeat what he said once again: if each include file starts from #ifdef __GNUG_ #pragma interface #endif and each source file starts from #ifdef __GNUG_ #pragma implementation #endif GCC does not "forget" about the inlines in the presence of "virtual" declarations. (ifdef jackets used here not to confuse other compilers, essential is the presence of pragma's). This solved all my problems. It would also be very interesting to figure out why this problem doesn't affect ROOT core distribution. Regards, Pasha
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:21 MET