[Gdal-dev] Unresolved External Error with GetFieldAsStringList
Mateusz Loskot
mateusz at loskot.net
Thu Apr 19 16:22:10 EDT 2007
Scott J Waguespack wrote:
> I've recently built gdal 1.4.0 (Using Visual Studios Express 2005),
> and I am having a linking error:
>
> error LNK2001: unresolved external symbol "public: char * *
> __thiscall OGRFeature::GetFieldAsStringList(int)"
> (?GetFieldAsStringList at OGRFeature@@QAEPAPADH at Z)
Scott,
This error is related to recent changes - this function has been
redeclared as const:
http://trac.osgeo.org/gdal/changeset/10020
I did complete rebuild of GDAL SVN *and* GDAL 1.40 using
Visual C++ 8.0 (VS 2005 Professional) and it links without any error.
Also, GDAL SVN builds well on following buildbot slaves:
http://buildbot.osgeo.org:8500/szekerest-vc80-full/builds/321
http://buildbot.osgeo.org:8500/szekerest-vc71-full/builds/328
Is there any chance you use gdal from SVN and you've some old object
files inside? If there is, please run
nmake /f makefile.vc clean
and then
nmake /f makefile.vc
Cheers
--
Mateusz Loskot
http://mateusz.loskot.net
More information about the Gdal-dev
mailing list