The TORCS Racing Board
Username: Password: Remember Me?
Lost Password Register
Author: wdbee | Created: 2017-10-26 15:53:13
Subject: Corkscrew - Axiom, USR and JSR do not compile
With VC2008 Axiom, USR and JSR do not compile.

Axion and USR: isnan and isfinite (missing definition)

In simu there is a definition
#define isnan _isnan
that helps for isnan, but what to do with isfinite?

JSR still contains the old issue.
Last Edited: 2017-10-26 15:53:13 by wdbee
    Author: dummy | Created: 2017-10-26 16:47:44
    Subject: Re: Corkscrew - Axiom, USR and JSR do not compile
    Axiom and USR had no problems compiling on my box.
    Last Edited: 2017-10-26 16:47:44 by dummy
    Author: firechief | Created: 2017-10-26 16:56:40
    Subject: Re: Corkscrew - Axiom, USR and JSR do not compile
    JSR's code hasn't changed since last race, so there's no need to rebuild it.

    According to Microsoft's documentation, isFinite should be supported by VS2008 -
    https://msdn.microsoft.com/en-us/library/1cxac9ky(v=vs.90).aspx

    If that doesn't work, I guess isfinite(x) could be replaced by _finite(x) ... might be worth a try?
    Last Edited: 2017-10-26 16:58:40 by firechief
      Author: wdbee | Created: 2017-10-26 17:59:56
      Subject: Re: Corkscrew - Axiom, USR and JSR do not compile
      Well isFinite is described as method only (Member function of an object, but there is no hint which object ;) )

      But _finite works

      Thanks

      Wolf-Dieter

      Last Edited: 2017-10-26 17:59:56 by wdbee
        Author: firechief | Created: 2017-10-27 01:06:02
        Subject: Re: Corkscrew - Axiom, USR and JSR do not compile
        No worries, I'll try to have appropriate #ifdefs etc for the next race.
        Last Edited: 2017-10-27 01:06:02 by firechief