Hi..

    There was a question posted in c C/C++ programming forum:
I build a really `short` application under Fedora or Mandrake disto(s):int main(){ return 0;}On both above platforms, it is build with command:g++ -g -O0 -m32 test2.cpp,
where test2.cpp is a file with above mentioned code.2. I move the binary output - a.out - to my Debian box.Attempt to execute it is immediately failing with`Floating point exception`.3. Building above code on Debian and executing:
no problem - it is doing nothing, but not crashing...4. moving the binary, build on Debian to Fedora and/or Mandriva- 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 share binary,build on Fedora/Mandriva with Debian.


To test, I'm attaching a simple C++ program compiled in Fedora 9 (32) with gcc 4.3.0. Please execute this on your Linux machine and reply with the result and the OS/compiler versions.
On successful execution, it should print "Hello brave tester...".

Thanks,

Syam

--~--~---------~--~----~------------~-------~--~----~
"Freedom is the only law".
"Freedom Unplugged"
http://www.ilug-tvm.org

You received this message because you are subscribed to the Google
Groups "ilug-tvm" group.
To post to this group, send email to ilug-tvm@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/ilug-tvm?hl=en
-~----------~----~----~----~------~----~------~--~---

Attachment: test
Description: Binary data

Reply via email to