[Bf-committers] msvc6 build broken due to fluid sim

Jonathan Jacobs korpse-blender at kaydash.za.net
Sun Sep 25 01:02:39 CEST 2005


bjornmose wrote:
> 2. MSVC6 does not allow -->
> {
> for (int i .. )
> {}
> for (int i .. )
> {}
> }
> for reasons i don't know, but compiler
> complains about 'redefinition of variable'

Yes, there is some scoping issue with MSVC 6, as Shaul points out.

What I used to do when using MSVC 6 was define a macro for "for" as follows:
#define for if (false); else for

Which wouldn't require changing any existing code using "for".

--
Jonathan

When you meet a master swordsman,
show him your sword.
When you meet a man who is not a poet,
do not show him your poem.
                  -- Rinzai, ninth century Zen master


More information about the Bf-committers mailing list