Opened 9 years ago

Closed 8 years ago

#2724 closed defect (invalid)

gdal-grass: Wrong return type in ogrgrass.h

Reported by: mkrapp Owned by: grass-dev@…
Priority: normal Milestone: 7.0.1
Component: Default Version: unspecified
Keywords: gdal-grass Cc:
CPU: Unspecified Platform: MacOSX

Description

GetFeatureCount( int ) in ogrgrass.h returns int but should return GIntBig}} instead. Error message when compiling the source ({{{gdal-grass-1.4.3.tar.gz) is:

In file included from ogrgrassdriver.cpp:30:
./ogrgrass.h:54:25: error: virtual function 'GetFeatureCount' has a different return type ('int') than the function it overrides
      (which has return type 'GIntBig' (aka 'long long'))
    int                 GetFeatureCount( int );
    ~~~                 ^

Find a patch attached

Attachments (1)

gdal-grass.patch (1.1 KB ) - added by mkrapp 9 years ago.

Download all attachments as: .zip

Change History (3)

by mkrapp, 9 years ago

Attachment: gdal-grass.patch added

comment:1 by neteler, 9 years ago

Milestone: 7.0.1

Thanks for the patch.

However, I'm afraid that this is the wrong bugtracker for the request: it is a patch for the GDAL software which is tracked at

https://trac.osgeo.org/gdal/

Would you mind to submit it there? AFAIK I cannot reassign it to that tracker myself.

comment:2 by rouault, 8 years ago

Resolution: invalid
Status: newclosed

Neither a GRASS nor a GDAL bug. This error comes from using an old gdal-grass archive when compiling with GDAL 2.0. Use http://download.osgeo.org/gdal/2.0.0/gdal-grass-2.0.0.tar.gz

Note: See TracTickets for help on using tickets.