[ODE] From unstable to trunk...
Peter Kyme
pk at dneg.com
Fri Jul 1 19:38:41 MST 2005
Rodrigo Hernandez wrote:
> Tanguy Fautre wrote:
>
>>
>> IIRC It's a 'define' Rodrigez added and that is not defined in the old
>> Makefile. Hence compiler errors on this 'undefined define'.
>>
>>
>> ode/src/collision_trimesh_box.cpp:1270: error: `dEpsilon' undeclared
>> (first use this function)
>
>
> Yes, that was a quick bugfix someone submited, it's on the archives I am
> sure, in theory, all it would take would be to add a check on
> configurator.c similar to the one for dInfinity
>
Here's a patch for the above.
-------------- next part --------------
--- configurator.c (current cvs)
+++ configurator.c (working copy)
@@ -408,6 +408,12 @@
suffix = "";
#endif
+#ifdef dSINGLE
+ fprintf (file,"#define dEpsilon FLT_EPSILON\n\n");
+#else
+ fprintf (file,"#define dEpsilon DBL_EPSILON\n\n");
+#endif
+
/* infinity */
write_header_comment (file,"the floating point infinity");
More information about the ODE
mailing list