What caused this error?
Dingjun Chen
Dingjun.Chen@geotechairborne.com
Wed Oct 18 17:27:13 GMT 2023
Hi, Dear Sir or Madam,
I used the gcc 4.5.2 to build an executable "Hello, World!\n" under Linux 2.6.38.
Then I run it and there is no problem on local machine. After I copied it and ran it on a single board computer with Linux 2.4.36,
then an error "floating point exception" occurred.
The test code is very simple and there is no calculation. But the error is "Floating Point Exception".
Test code:
#include <stdio.h>
void main()
{
printf("Hello, World\n");
}
Could someone please tell me how to fix such an error?
Thanks and Regards,
Dingjun
Dingjun Chen | Software Developer
[Geotech Airborne Geophysical Surveys]
Geotech Ltd. dba Geotech Airborne | 270 INDUSTRIAL PKY S | AURORA ON CA | L4G 3T9
T: +1 905 841 5004 | Dingjun.Chen@geotechairborne.com<mailto:Dingjun.Chen@geotechairborne.com> | www.geotechairborne.com<www.geotech.ca>
P Please consider the environment before printing this email
This message may contain PRIVILEGED AND PROPRIETARY INFORMATION intended solely for the use of the addressee (s) named above. Any disclosure, distribution, copying, or use of the information by others is strictly prohibited. If you have received this message in error, please advise the sender by immediate reply and delete the original message.
More information about the Gcc-help
mailing list