[gdal-dev] OGR: GetField methods problem
Anton Patrushev
anton at orkney.co.jp
Fri Oct 17 22:45:49 EDT 2008
Hi there,
It is strange, but I have this problem again with the fresh
installation of Ubuntu 8.04.
I took GDAL 1.5.1 .deb packages from here
http://les-ejk.cz/ubuntu/dists/hardy/multiverse/binary-i386/ and they
look OK.
But when I'm trying to compile my stuff, I get
/usr/include/gdal/ogr_feature.h undefined reference to
'OGRFeature::GetFieldAsDouble(int)'
/usr/include/gdal/ogr_feature.h undefined reference to
'OGRFeature::GetFieldAsInteger(int)'
/usr/include/gdal/ogr_feature.h undefined reference to
'OGRFeatureDefn::GetFieldIndex(char const*)'
just like with RHEL before.
It looks pretty strange, 'cause I have all header files from gdal-dev.
When I compiled 1.5.3 from sources with the same Ubuntu versions it
was OK, but for server I'd like to have packages, 'cause they are
easier to manage.
Probably I miss something.
Does anybody had those errors before?
Thank you,
Anton.
On Thu, Oct 16, 2008 at 5:21 PM, Markus Neteler <neteler at osgeo.org> wrote:
> Hi Anton,
>
> On Thu, Oct 16, 2008 at 10:12 AM, Anton Patrushev <anton at orkney.co.jp> wrote:
>> Hi Markus,
>>
>> I installed the newer version for Ubuntu and it works flawlessly.
>> Thank you.
>
> Great - please also tell the list :)
>
> cheers
> Markus
>
>> On 10/15/08, Markus Neteler <neteler at osgeo.org> wrote:
>>> Hi Anton,
>>>
>>>
>>> On Wed, Oct 15, 2008 at 7:04 AM, Anton Patrushev <anton at orkney.co.jp> wrote:
>>> > Hi,
>>> >
>>> > I have a problem with compiling my stuff for RHEL5.
>>> > I always get following errors:
>>> >
>>> > /usr/include/ogr_feature.h undefined reference to
>>> > 'OGRFeature::GetFieldAsDouble(int)'
>>> > /usr/include/ogr_feature.h undefined reference to
>>> > 'OGRFeature::GetFieldAsInteger(int)'
>>> > /usr/include/ogr_feature.h undefined reference to
>>> > 'OGRFeatureDefn::GetFieldIndex(char const*)'
>>> >
>>> > I installed gdal and gdal-dev 1.4.4-1 from RPMs.
>>> > Am I missing something?
>>>
>>>
>>> 1.4.4 is fairly old, see
>>> http://trac.osgeo.org/gdal/wiki#Releases
>>>
>>> Maybe a newer version would help (you may try to take the
>>> SRPM, extract the SPEC file and apply it to 1.5.2).
>>>
>>>
>>> Markus
>>>
>>
>
>
>
> --
> Open Source Geospatial Foundation
> http://www.osgeo.org/
> http://www.grassbook.org/
>
More information about the gdal-dev
mailing list