[ODE] RE: New code breaks MSVC6 (minor problem) (David McClurg)

Ruud van Gaal ruud at marketgraph.nl
Wed Sep 18 01:52:01 2002


...
> it's that problem where the for loop variable doesn't go out 
> of scope...
> 
> ode/src/geom.cpp(389) : error C2086: 'i' : redefinition
> ode/src/geom.cpp(398) : error C2086: 'i' : redefinition
> make: *** [ode/src/geom.obj] Error 2

Time for MSVC7 that's more compliant. :)
But better indeed to just avoid the situation.

> Also, what about renaming ode/src/objects.h to 
> ode/src/objects_internal.h so it doesn't conflict with 
> include/ode/objects.h?

Doesn't a "objects.h" vs. <ode/objects.h> fix any and all of such problems?
To my knowledge, "objects.h" first looks locally, then in the search paths.
The use of '<' and '>' instead doesn't look locally (current-dir).

Ruud