On Sun, Nov 23, 2003 at 04:53:49PM +0800, Andy Sy wrote: > pfalcone wrote: > > > ... GCC 2.95 and the 3.2 and up series have different > > application binary interfaces ... preventing intermingling of > > object code produced by both versions of compilers > > Just to confirm, does this mean that a library (.a or .so) compiled > with GCC 2.95 cannot be used with a GCC 3.2 toolchain? (i.e. linked > to form an exe using a gcc from this version of the GNU toolchain) >
IIRC, this is not totally absolute. Most functions may be fine. But more complex functions and dynamic linking (e.g. with kernel modules) may fail and produce segfaults. I remember reading somewhere that the ABI changes between GCC 2.95 and the 3.2+ series are not totally incompatible, but some things have changed that can just bite out of the blue. -- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
