[Qgis-developer] GDAL linking error when compiling QGIS master on Windows using osgeo4w libs

G. Allegri giohappy at gmail.com
Mon Aug 20 02:05:32 PDT 2012


Since the last osgeo4w libs update qgis_core doesn't compile because of
linking errors with gdal_i.lib (CPL methods).
I had those errors when I in the past I set the wrong gdal libs (older
versions) in the VC lib paths. Now the path points
to C:\OSGeo4W\lib\gdal_i.lib (as I did many times before) which is the
latest installed by osgeo4w.
Are there changes in the osgeo4w packaging, or am I missing something?

thanks,
giovanni

------------------------

1>   Creating library
D:\LAVORO\Geoinformatica\QGIS\qgis_build\src\core\Debug\qgis_core.lib and
object D:\LAVORO\Geoinformatica\QGIS\qgis_build\src\core\Debug\qgis_core.exp
1>qgsdataitem.obj : error LNK2019: unresolved external symbol "public: int
__thiscall CPLStringList::Count(void)const " (?Count at CPLStringList@@QBEHXZ)
referenced in function "public: int __thiscall
CPLStringList::size(void)const " (?size at CPLStringList@@QBEHXZ)
1>qgsdataitem.obj : error LNK2019: unresolved external symbol "public:
class CPLStringList & __thiscall
CPLStringList::InsertStringDirectly(int,char *)"
(?InsertStringDirectly at CPLStringList@@QAEAAV1 at HPAD@Z) referenced in
function "public: class CPLStringList & __thiscall
CPLStringList::InsertString(int,char const *)" (?InsertString at CPLStringList
@@QAEAAV1 at HPBD@Z)
1>qgsdataitem.obj : error LNK2019: unresolved external symbol "public:
class CPLStringList & __thiscall CPLStringList::Assign(char * *,int)"
(?Assign at CPLStringList@@QAEAAV1 at PAPADH@Z) referenced in function "public:
class CPLStringList & __thiscall CPLStringList::operator=(char * *)"
(??4CPLStringList@@QAEAAV0 at PAPAD@Z)
1>qgsdataitem.obj : error LNK2019: unresolved external symbol "public: char
* __thiscall CPLStringList::operator[](int)" (??ACPLStringList@@QAEPADH at Z)
referenced in function "public: char * __thiscall
CPLStringList::operator[](unsigned int)" (??ACPLStringList@@QAEPADI at Z)
1>qgsdataitem.obj : error LNK2019: unresolved external symbol "public: char
const * __thiscall CPLStringList::operator[](int)const " (??ACPLStringList@
@QBEPBDH at Z) referenced in function "public: char const * __thiscall
CPLStringList::operator[](unsigned int)const " (??ACPLStringList@@QBEPBDI at Z)
1>qgscoordinatereferencesystem.obj : error LNK2019: unresolved external
symbol _OSRAxisEnumToName referenced in function "public: bool __thiscall
QgsCoordinateReferenceSystem::axisInverted(void)const "
(?axisInverted at QgsCoordinateReferenceSystem@@QBE_NXZ)
1>qgscoordinatereferencesystem.obj : error LNK2019: unresolved external
symbol _OSRGetAxis referenced in function "public: bool __thiscall
QgsCoordinateReferenceSystem::axisInverted(void)const "
(?axisInverted at QgsCoordinateReferenceSystem@@QBE_NXZ)
1>D:\LAVORO\Geoinformatica\QGIS\qgis_build\output\bin\Debug\qgis_core.dll :
fatal error LNK1120: 7 unresolved externals
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20120820/84c3287b/attachment.html>


More information about the Qgis-developer mailing list