<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2658.24">
<TITLE>RE: [Gdal-dev] Re: compiling with Visual Studio 2005 Beta 2 (VC 8)</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>This was an easy one... pszPenColor needed to be const char *, not char *. I'm not sure I have the latest source so here's the diff:</FONT></P>
<P><FONT SIZE=2>Index: ../../OGR/gdal/ogr/ogrsf_frmts/mitab/mitab_feature.cpp</FONT>
<BR><FONT SIZE=2>===================================================================</FONT>
<BR><FONT SIZE=2>--- ../../OGR/gdal/ogr/ogrsf_frmts/mitab/mitab_feature.cpp (revision 11380)</FONT>
<BR><FONT SIZE=2>+++ ../../OGR/gdal/ogr/ogrsf_frmts/mitab/mitab_feature.cpp (working copy)</FONT>
<BR><FONT SIZE=2>@@ -6420,7 +6420,7 @@</FONT>
<BR><FONT SIZE=2> const char *pszPenColor;</FONT>
<BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2> int nPenId;</FONT>
<BR><FONT SIZE=2>- char* pszPenId;</FONT>
<BR><FONT SIZE=2>+ const char* pszPenId;</FONT>
<BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2> // Use the Style Manager to retreive all the information we need.</FONT>
<BR><FONT SIZE=2> OGRStyleMgr *poStyleMgr = new OGRStyleMgr(NULL);</FONT>
<BR><FONT SIZE=2> </FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: gdal-dev-bounces@lists.maptools.org [<A HREF="mailto:gdal-dev-bounces@lists.maptools.org">mailto:gdal-dev-bounces@lists.maptools.org</A>] On Behalf Of Frank Warmerdam</FONT>
<BR><FONT SIZE=2>Sent: Saturday, November 19, 2005 10:12 AM</FONT>
<BR><FONT SIZE=2>To: Bart van den Eijnden</FONT>
<BR><FONT SIZE=2>Cc: gdal-dev@lists.maptools.org</FONT>
<BR><FONT SIZE=2>Subject: Re: [Gdal-dev] Re: compiling with Visual Studio 2005 Beta 2 (VC 8)</FONT>
</P>
<P><FONT SIZE=2>On 11/19/05, Bart van den Eijnden <bartvde@xs4all.nl> wrote:</FONT>
<BR><FONT SIZE=2>> I forgot to mention, the compile seems to fail mainly on mitab:</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>> mitab_feature.cpp(6480) : error C2440: '=' : cannot convert from </FONT>
<BR><FONT SIZE=2>> 'const char *' to 'char *'</FONT>
<BR><FONT SIZE=2>> Conversion loses qualifiers</FONT>
<BR><FONT SIZE=2>> mitab_feature.cpp(6485) : error C2440: '=' : cannot convert from </FONT>
<BR><FONT SIZE=2>> 'const char *' to 'char *'</FONT>
<BR><FONT SIZE=2>> Conversion loses qualifiers</FONT>
</P>
<P><FONT SIZE=2>Bart,</FONT>
</P>
<P><FONT SIZE=2>This can be easiliy corrected with a cast, but the line number doesn't match the current source. Was this with 1.3.1? Could you try a nightly snapshot and point out the errors?</FONT></P>
<P><FONT SIZE=2>Best regards,</FONT>
<BR><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>---------------------------------------+--------------------------------</FONT>
<BR><FONT SIZE=2>---------------------------------------+------</FONT>
<BR><FONT SIZE=2>I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com</FONT>
<BR><FONT SIZE=2>light and sound - activate the windows | <A HREF="http://pobox.com/~warmerdam" TARGET="_blank">http://pobox.com/~warmerdam</A></FONT>
<BR><FONT SIZE=2>and watch the world go round - Rush | Geospatial Programmer for Rent</FONT>
</P>
<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Gdal-dev mailing list</FONT>
<BR><FONT SIZE=2>Gdal-dev@lists.maptools.org</FONT>
<BR><FONT SIZE=2><A HREF="http://lists.maptools.org/mailman/listinfo/gdal-dev" TARGET="_blank">http://lists.maptools.org/mailman/listinfo/gdal-dev</A></FONT>
</P>
</BODY>
</HTML>