While I know it is quite impossible for every application to be compiled in a way that's binary compatible throughout most distros, there are a minimum set of standards (which LSB tries to enforce I think) that allow applications compiled on one distro to run on another.
I have installed Fedora Core 6 on my development machine (upgraded from FC4), and while I could compile applications on FC4 and then run them on Mandriva, Ubuntu or SuSE, now, even the simplest Hello World crashes on about any other distro with a "Floating point exception" error.
Am I missing something or something really went wrong with either FC6 or gcc (or a combination of both)? I use standard packages and my gcc is the one that came with FC6 (g++ (GCC) 4.1.1 20061011 (Red Hat 4.1.1-30))
Hello World compiled on either Mandriva or SuSE runs fine on FC6, but when compiled on FC6, it gets an FPE on other distros. Is there a flag I could pass g++ to have it be compatible?