[Gdal-dev] Re: compiling with Visual Studio 2005 Beta 2 (VC 8
)
Ned Harding
nharding at extendthereach.com
Sat Nov 19 16:36:52 EST 2005
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:
Index: ../../OGR/gdal/ogr/ogrsf_frmts/mitab/mitab_feature.cpp
===================================================================
--- ../../OGR/gdal/ogr/ogrsf_frmts/mitab/mitab_feature.cpp (revision
11380)
+++ ../../OGR/gdal/ogr/ogrsf_frmts/mitab/mitab_feature.cpp (working
copy)
@@ -6420,7 +6420,7 @@
const char *pszPenColor;
int nPenId;
- char* pszPenId;
+ const char* pszPenId;
// Use the Style Manager to retreive all the information we need.
OGRStyleMgr *poStyleMgr = new OGRStyleMgr(NULL);
-----Original Message-----
From: gdal-dev-bounces at lists.maptools.org
[mailto:gdal-dev-bounces at lists.maptools.org] On Behalf Of Frank Warmerdam
Sent: Saturday, November 19, 2005 10:12 AM
To: Bart van den Eijnden
Cc: gdal-dev at lists.maptools.org
Subject: Re: [Gdal-dev] Re: compiling with Visual Studio 2005 Beta 2 (VC 8)
On 11/19/05, Bart van den Eijnden <bartvde at xs4all.nl> wrote:
> I forgot to mention, the compile seems to fail mainly on mitab:
>
> mitab_feature.cpp(6480) : error C2440: '=' : cannot convert from
> 'const char *' to 'char *'
> Conversion loses qualifiers
> mitab_feature.cpp(6485) : error C2440: '=' : cannot convert from
> 'const char *' to 'char *'
> Conversion loses qualifiers
Bart,
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?
Best regards,
--
---------------------------------------+--------------------------------
---------------------------------------+------
I set the clouds in motion - turn up | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
_______________________________________________
Gdal-dev mailing list
Gdal-dev at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/gdal-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20051119/c707f61f/attachment.html
More information about the Gdal-dev
mailing list