#225 solaris has no strtof function used in helpers.cpp

open
stable (17)
5
2005-01-02
2004-11-18
ragousis
No

I had a problem compiling the program on a few sparc
solaris boxes. I would get an error about strtof first use
of this function (in hellpers.cpp line 123) I asked my
friend for help and was able to fix the problem by
following his instructions :

Replace line # 123 in helpers.cpp:

x = strtof(str, &end);

with this one
x = sscanf("%f", str);

It seems that libc for solaris does not have this
function. You can
use this alternative though. That should convert a string
to a floating
number.

Discussion

  • Kevin Dwyer

    Kevin Dwyer - 2005-01-02

    Logged In: YES
    user_id=285914

    Yeah, strtof seems to be in the C99 definition only (i.e. a
    lot newer than Solaris.)

     
  • Kevin Dwyer

    Kevin Dwyer - 2005-01-02
    • assigned_to: nobody --> kevindication
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks