can u help me: binary incompatibility between different Linux distributions... i have some problem with my c program.
I build a really `short` application under Fedora
int main()
{
return 0;
}
On both above platforms, it is build with command:
g++ -g -O0 -m32 test.cpp,
where test2.cpp is a file with above mentioned code.
I move the binary output - a.out - to my Debian box.
Attempt to execute it is immediately failing with
`Floating point exception`.
Building above code on Debian and executing:
no problem - it is doing nothing, but not crashing...
moving the binary, build on Debian to Fedora
and running it - no problem, doing nothing, not crashing.
I would really appreciate any idea how to explain such behavior, and,
possibly, an advice what should be done in order to create binary compatible programs in C++ for any popular Linux distributions so that i don't have to compile it before running it in any new machine......
Can anyone help me please.................................... |