[ODE] Wrong brackets in definition of dSqrt in common.h ?

Rodrigo Hernandez kwizatz at aeongames.com
Tue Dec 13 16:05:42 MST 2005


Well, thats the problem,
I just checked and on UNSTABLE, it is defined as

#define dSqrt(x) sqrt(x)

and there dont seem to be any castings at all for the other macros, this 
is perfectly fine on C,
I doubt STABLE is any different, but it may as well be,
did you apply any patches?


Peter Onion wrote:

>On Tue, 2005-12-13 at 14:29 -0800, Jon Watte (ODE) wrote:
>  
>
>>In C++, you can cast by using construction:
>>
>>   int(x) == (int)x
>>
>>Are you perhaps compiling this with a C (not C++) compiler setting?
>>    
>>
>
>Yes I am, because it's a C application !
>
>  
>
>> If 
>>that's something we'll want to support, 
>>    
>>
>
>When did ODE stop supporting "C" ?
>
>  
>
>>then we should probably change 
>>that define. However, ODE itself is implemented in C++.
>>    
>>
>
>But it provides a C API as well !
>
>Peter
>
>
>_______________________________________________
>ODE mailing list
>ODE at q12.org
>http://q12.org/mailman/listinfo/ode
>
>  
>



More information about the ODE mailing list