This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Problem
- To: gnu at gnu dot org
- Subject: Problem
- From: Alexander Pochaevets <Alexander dot Pochaevets at fh-nuernberg dot de>
- Date: Wed, 08 Dec 1999 21:31:37 +0100
- Reply-To: Alexander Pochaevets <Alexander dot Pochaevets at fh-nuernberg dot de>
Dear staff of GNU,
I have some problem with
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
on PC under Linux
/* --------------------- zz.c -------------------------- */
#include
<stdlib.h>
#include
<math.h>
int
main(void){
printf("%ld\n",(signed long
int)rint((double)2.5));
return
0;
}
/* ----------------------------------------------------- */
$ cc -o zz zz.c
-lm
$ ./zz
2
$ cc -o zz zz.c -lm
-ansi
$ ./zz
1074883448
Any comments will be appreciated.
Regards,
Sasha