Uffe Kousgaard wrote:
> From: "Daniel Morissette" <[EMAIL PROTECTED]>
> 
>> 2- Use the development snapshot at
>> http://dl.maptools.org/dl/mitab/mitab-1.6.2-dev-20070612.tar.gz which
>> has been modified to use the old spatial index code by default, and
>> includes all the other useful enhancement and fixes done in the 1.6.x
>> releases.
> 
> Compilation fails in mitab_mapfile.cpp, line 1726 / 1830 since "i" is 
> appearently defined twice in the same context. Removing "int" from line 1830 
> solves the problem.
> 

Which compiler produces this error? If I remove the 'int' in line 1830 
as you suggest then gcc 4.0.3 produces the following error:

mitab_mapfile.cpp:1830: error: name lookup of ‘i’ changed for new ISO 
‘for’ scoping
mitab_mapfile.cpp:1726: error:   using obsolete binding at ‘i’


It seems then that the right fix to make all compilers happy is to 
define 'int i' globally inside the function and remove the local 'int i' 
definitions in the two for loops at lines 1726 and 1830.

I have committed this fix in the MITAB master in CVS. It will be in the 
next release.

Daniel
-- 
Daniel Morissette
http://www.mapgears.com/


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/mitab/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/mitab/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to