Results 1 to 1 of 1
Hello,
I have a Fedora Core 6 PC, on which I compile a hello world program using "gcc helloc.c -o helloc".
The verbose option shows that I am compiling with ...
- 08-31-2007 #1Just Joined!
- Join Date
- Aug 2007
- Posts
- 1
C program compiled with GCC 4.1.2 core dumps on GNU C 3.2.3 system
Hello,
I have a Fedora Core 6 PC, on which I compile a hello world program using "gcc helloc.c -o helloc".
The verbose option shows that I am compiling with GNU C version 4.1.2 20070626 (Red Hat 4.1.2-13).
The program works fine.
My ISV is running an older Linux Redhat 3.2.3-58 with GNU C version 3.2.3 20030502.
When I upload my program and run it on the ISV system, it crashes with signal 8 (Floating point exception). When I look at the core dump with gdb, it looks like the executable is corrupted (no back trace).
I asked my ISV to compile the program for me. That worked.
The executable produced by my ISV also works on my machine.
Does anyone know a GNU C 4.1.2 compile/link option I could use to create an executable that would run on 3.2.3 libraries?
Thanks for your help


Reply With Quote