This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]