Feature request #2030

types conversion's errors when build

Added by Giuseppe Sucameli about 13 years ago. Updated about 13 years ago.

Assignee:nobody -
Pull Request or Patch supplied: Resolution:wontfix
Easy fix?:No Copied to github as #:12090


Sorry, but I don't know how fill the 'Milestone', 'Version' and 'Platform Version' fields.
I'm on Ubuntu 8.10 and I'm using the code in the trunk.
The patch file is attached.

G+setenv(( char * ) "GISDBASE", gisdbase.toAscii().constData() );

cannot convert argument 2 from 'const char *' to 'char *'

fix it by:
G+setenv(( char * ) "GISDBASE", gisdbase.toAscii().data() );

G+setenv(( char * ) "LOCATION_NAME", location.toAscii().constData() );

cannot convert argumnet 2 from 'const char *' to 'char *'

fix if by:
G+setenv(( char * ) "LOCATION_NAME", location.toAscii().data() );

qgsgrass.cpp.diff Magnifier - patch file (720 Bytes) Giuseppe Sucameli, 2009-10-24 04:23 PM


#1 Updated by Jürgen Fischer about 13 years ago

  • Resolution set to wontfix
  • Status changed from Open to Closed

intrepid still has GRASS 6.2. GRASS 6.4 (and IIRC GRASS 6.3) the argument is const.

Our ubuntu ppa already has packages for intrepid (including a patch)

Also available in: Atom PDF