What we are trying to do is to migrate code over without any changes. Our round function is used in several files, so that's the last resort I want to take is to modify files.
You asked if I was sure it was a compliant C compiler - I used gcc on both machines. On the Solaris 5.6 machine, gcc is version 2.8.1. On the Solaris 5.10 machine, gcc is version 3.4.3
Copy of round.c is included too - thank you for any and all help.
Karen
Main Topics
Browse All Topics





by: Infinity08Posted on 2009-04-21 at 07:41:13ID: 24194938
Can you leave out the #include <math.h> ?
Can you give your function a different name than 'round' ? I know you said you can't, but why not ?
Can you post the round.c file ?
>> Note that on another Solaris machine, Solaris 5.6, I can compile round.c in the same manner without any problem whatsoever.
Are you sure that was with a (compliant) C compiler ? (not a C++ compiler for example)