[Qgis-user] Compilation error on Qgis_analysis

Saqib Ilyas msaqib at gmail.com
Mon Jun 25 06:56:57 PDT 2012


Hi everyone
I am trying to compile QGIS on Windows using MS Visual C++ 2010 express.
I've pulled the source from svn. I guess it would be v 1.8, the latest.
I've had the visual studio solution created and the build process running.
When it tries to compile qgis_analysis, the linker fails with the errors:

1>     Creating library C:/qgis-build/src/analysis/Debug/qgis_analysis.lib
and object C:/qgis-build/src/analysis/Debug/qgis_analysis.exp
1>qgsninecellfilter.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>qgszonalstatistics.obj : error LNK2001: unresolved external symbol
"public: int __thiscall CPLStringList::Count(void)const "
(?Count at CPLStringList@@QBEHXZ)
1>qgsninecellfilter.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>qgszonalstatistics.obj : error LNK2001: unresolved external symbol
"public: class CPLStringList & __thiscall
CPLStringList::InsertStringDirectly(int,char *)"
(?InsertStringDirectly at CPLStringList@@QAEAAV1 at HPAD@Z)
1>qgsninecellfilter.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>qgszonalstatistics.obj : error LNK2001: unresolved external symbol
"public: class CPLStringList & __thiscall CPLStringList::Assign(char *
*,int)" (?Assign at CPLStringList@@QAEAAV1 at PAPADH@Z)
1>qgsninecellfilter.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>qgszonalstatistics.obj : error LNK2001: unresolved external symbol
"public: char * __thiscall CPLStringList::operator[](int)"
(??ACPLStringList@@QAEPADH at Z)
1>qgsninecellfilter.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>qgszonalstatistics.obj : error LNK2001: unresolved external symbol
"public: char const * __thiscall CPLStringList::operator[](int)const "
(??ACPLStringList@@QBEPBDH at Z)
1>C:\qgis-build\src\analysis\Debug\qgis_analysis.dll : fatal error LNK1120:
5 unresolved externals
========== Build: 0 succeeded, 1 failed, 3 up-to-date, 0 skipped ==========

I've checked that the gdal_i.lib is amongst the additional libraries to be
linked against for this project. Isn't that where the relevant functions
are to be found?
Please let me know if I should paste the full compiler output.
Thanks and best regards

-- 
Muhammad Saqib Ilyas
PhD Student, Computer Science and Engineering
Lahore University of Management Sciences
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20120625/02799054/attachment.html>


More information about the Qgis-user mailing list