[Gdal-dev] gdalwarp tutorial VS2003 compile error

Mateusz Loskot mateusz at loskot.net
Mon Feb 26 15:02:10 EST 2007


Huajun Zhang wrote:
> 
> I am trying to use some code from gdal warp API tutorial, but I meet the
> compile error in VS2003:
>  error C2664: 'OGRSpatialReference::exportToWkt' : cannot convert
> parameter 1 from 'const char **__w64  ' to 'char ** '
> 
> Do you have any idea to fix the problem?

You're probably passing const pointer where non-const is expected.
Please, show us exact code you're using, with line where you call
exportToWkt().

Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net



More information about the Gdal-dev mailing list