This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: version of gcc
- From: Andrew Haley <aph-gcc at littlepinkcloud dot COM>
- To: "BEGIN Thibault (GFI)" <AT dot GFI dot BEGIN at sesam-vitale dot fr>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Thu, 5 Jul 2007 13:41:50 +0100
- Subject: Re: version of gcc
- References: <EBBC72791846134B9BC4517C65711C3F055C8469@chamonix.sesam.loc>
BEGIN Thibault (GFI) writes:
> I have compiled a program on Mandriva with gcc 4.1 and it does not run on the same machine config on Mandrake 9.2: I get a "floating point exception" at run time.
> This program compiled with gcc 4.1 works correclty on Mandriva.
> This program compiled with gcc 3.2 works correclty on Mandrake 9.2.
> the proc are both Pentium 4.
>
> What's the matter?
A lack of forwards compatibility.
The rule is this: compile your program on the oldest OS version on
which you wish it to run.
Andrew.