This content has been marked as final. Show 1 reply
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.
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.