1 Reply Latest reply: May 20, 2010 5:43 AM by paul_floyd RSS

    atanf and round functions in solaris 9

    807559
      Dear All,

      I am creating a shared object file and in my code i need to use atanf and round functions from the <math.h> file. These functions are not there in the Solaris 9 libm.so file. These functions are there in Solaris 10.

      In production environment, our client has solaris 9 OS.

      Can anybody suggest me a workaround for this situation.

      Thanks for your help :-)

      Sundaram. D
        • 1. Re: atanf and round functions in solaris 9
          paul_floyd
          Shunmugam wrote:
          Dear All,

          I am creating a shared object file and in my code i need to use atanf and round functions from the <math.h> file. These functions are not there in the Solaris 9 libm.so file. These functions are there in Solaris 10.

          In production environment, our client has solaris 9 OS.

          Can anybody suggest me a workaround for this situation.
          Hi

          atanf and round are C99 features. Solaris 10 is the first version of Solaris to have C99 support. So you have two choices: either use Solaris 10 and get your client to upgrade (Solaris 9 is in End of Life). Alternatively, change your code to be C89 compliant. It shouldn't be too hard to write your own atanf and round functions using atan, floor and ceil.

          Paul