[Qgis-developer] compiler error

Byambaa Mendbayar mendbayar_b at mongol.net
Thu Aug 17 06:00:41 EDT 2006


Hello all,

I am new in QGIS. I have been tried to compile QGIS v.0.8 (I was getting
source codes from https://svn.qgis.org/repos/qgis/trunk/qgis SVN repository)
on Windows platform using MS Visual C++ 2005. In first time I have got lot
of compiler errors then I was getting Mr. Mateusz Loskot's help. But I have
still new compiler errors. Please look an attached compiler full log file
(20060817_1618_compiler-error-msg.txt). 

I have got strange error please look at attached "special_error.txt" file. 
-----------------------------
qgis_gui.lib(qgisiface.obj) : error LNK2001: unresolved external symbol
"public: virtual struct QMetaObject const * __thiscall
QgisIface::metaObject(void)const "
(?metaObject at QgisIface@@UBEPBUQMetaObject@@XZ)
-----------------------------

After that error I was investigating qgisiface.h, qgisiface.cpp,
qgisinterface.h and qgisinterface.cpp files. 
There have not QgisIface::metaObject(void)const, qt_metacast(char const *)
and qt_metacall(enum QMetaObject::Call,int,void * *) functions. 

Please help me, what's wrong in my compilation process? 

I hope that you will help to me.


Best regards,
	Byambaa Mendbayar

-------------- next part --------------
qgis_gui.lib(qgisiface.obj) : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall QgisIface::metaObject(void)const " (?metaObject at QgisIface@@UBEPBUQMetaObject@@XZ)
qgis_gui.lib(qgisiface.obj) : error LNK2001: unresolved external symbol "public: virtual void * __thiscall QgisIface::qt_metacast(char const *)" (?qt_metacast at QgisIface@@UAEPAXPBD at Z)
qgis_gui.lib(qgisiface.obj) : error LNK2001: unresolved external symbol "public: virtual int __thiscall QgisIface::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall at QgisIface@@UAEHW4Call at QMetaObject@@HPAPAX at Z)
qgis_gui.lib(qgisiface.obj) : error LNK2019: unresolved external symbol "protected: void __thiscall QgisIface::currentLayerChanged(class QgsMapLayer *)" (?currentLayerChanged at QgisIface@@IAEXPAVQgsMapLayer@@@Z) referenced in function "public: void __thiscall QgisIface::emitCurrentLayerChanged(class QgsMapLayer *)" (?emitCurrentLayerChanged at QgisIface@@QAEXPAVQgsMapLayer@@@Z)
-------------- next part --------------
------ Build started: Project: qgis_widgets, Configuration: Debug Win32 ------
Running UIC on qgsprojectionselectorbase.ui...
Build log was saved at "file://d:\myqgis\msvc80\qgis_widgets\Debug\BuildLog.htm"
qgis_widgets - 0 error(s), 0 warning(s)
------ Build started: Project: qgis_core, Configuration: Debug Win32 ------
Running FLEX on qgssearchstringlexer.ll...
Running BISON on qgssearchstringparser.yy...
Running MOC on qgsrasterdataprovider.h...
Running MOC on qgsdataprovider.h...
Running MOC on qgscontexthelp.h...
Compiling...
moc_qgscontexthelp.cpp
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(133) : warning C4311: 'reinterpret_cast' : pointer truncation from 'void *' to 'long'
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(133) : warning C4311: 'reinterpret_cast' : pointer truncation from 'void *' to 'long'
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(133) : warning C4312: 'reinterpret_cast' : conversion from 'long' to 'void *' of greater size
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(145) : warning C4311: 'reinterpret_cast' : pointer truncation from 'void *' to 'long'
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(145) : warning C4312: 'reinterpret_cast' : conversion from 'long' to 'void *' of greater size
moc_qgsdataprovider.cpp
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(133) : warning C4311: 'reinterpret_cast' : pointer truncation from 'void *' to 'long'
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(133) : warning C4311: 'reinterpret_cast' : pointer truncation from 'void *' to 'long'
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(133) : warning C4312: 'reinterpret_cast' : conversion from 'long' to 'void *' of greater size
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(145) : warning C4311: 'reinterpret_cast' : pointer truncation from 'void *' to 'long'
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(145) : warning C4312: 'reinterpret_cast' : conversion from 'long' to 'void *' of greater size
moc_qgsrasterdataprovider.cpp
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(133) : warning C4311: 'reinterpret_cast' : pointer truncation from 'void *' to 'long'
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(133) : warning C4311: 'reinterpret_cast' : pointer truncation from 'void *' to 'long'
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(133) : warning C4312: 'reinterpret_cast' : conversion from 'long' to 'void *' of greater size
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(145) : warning C4311: 'reinterpret_cast' : pointer truncation from 'void *' to 'long'
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(145) : warning C4312: 'reinterpret_cast' : conversion from 'long' to 'void *' of greater size
qgssearchstringlexer.yy.cpp
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(133) : warning C4311: 'reinterpret_cast' : pointer truncation from 'void *' to 'long'
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(133) : warning C4311: 'reinterpret_cast' : pointer truncation from 'void *' to 'long'
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(133) : warning C4312: 'reinterpret_cast' : conversion from 'long' to 'void *' of greater size
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(145) : warning C4311: 'reinterpret_cast' : pointer truncation from 'void *' to 'long'
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(145) : warning C4312: 'reinterpret_cast' : conversion from 'long' to 'void *' of greater size
d:\myqgis\qgis\src\core\qgssearchstringparser.h(229) : warning C4273: 'malloc' : inconsistent dll linkage
        d:\ms.vs.2005\vc\include\stdlib.h(594) : see previous definition of 'malloc'
d:\myqgis\qgis\src\core\qgssearchstringparser.h(236) : warning C4273: 'free' : inconsistent dll linkage
        d:\ms.vs.2005\vc\include\stdlib.h(593) : see previous definition of 'free'
d:\myqgis\qgis\src\core\qgssearchstringparser.h(865) : warning C4065: switch statement contains 'default' but no 'case' labels
d:\myqgis\qgis\src\core\qgssearchstringlexer.yy.cpp(999) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
qgslogger.cpp
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(133) : warning C4311: 'reinterpret_cast' : pointer truncation from 'void *' to 'long'
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(133) : warning C4311: 'reinterpret_cast' : pointer truncation from 'void *' to 'long'
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(133) : warning C4312: 'reinterpret_cast' : conversion from 'long' to 'void *' of greater size
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(145) : warning C4311: 'reinterpret_cast' : pointer truncation from 'void *' to 'long'
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(145) : warning C4312: 'reinterpret_cast' : conversion from 'long' to 'void *' of greater size
Generating Code...
Creating library...
Build log was saved at "file://d:\myqgis\msvc80\qgis_core\Debug\BuildLog.htm"
qgis_core - 0 error(s), 29 warning(s)
------ Build started: Project: qgis_gui, Configuration: Debug Win32 ------
Compiling...
moc_qgsprojectproperties.cpp
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(133) : warning C4311: 'reinterpret_cast' : pointer truncation from 'void *' to 'long'
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(133) : warning C4311: 'reinterpret_cast' : pointer truncation from 'void *' to 'long'
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(133) : warning C4312: 'reinterpret_cast' : conversion from 'long' to 'void *' of greater size
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(145) : warning C4311: 'reinterpret_cast' : pointer truncation from 'void *' to 'long'
d:\qt\4.1.4\src\corelib\arch\windows\arch\qatomic.h(145) : warning C4312: 'reinterpret_cast' : conversion from 'long' to 'void *' of greater size
Generating Code...
Skipping... (no relevant changes detected)
qgisapp.cpp
qgslayerprojectionselector.cpp
qgsoptions.cpp
qgsprojectproperties.cpp
qgsrasterlayerproperties.cpp
qgsserversourceselect.cpp
qgsspatialrefsys.cpp
qgsvectorlayerproperties.cpp
moc_qgslayerprojectionselector.cpp
Creating library...
Build log was saved at "file://d:\myqgis\msvc80\qgis_gui\Debug\BuildLog.htm"
qgis_gui - 0 error(s), 5 warning(s)
------ Build started: Project: qgis, Configuration: Debug Win32 ------
Linking...
   Creating library C:\Program Files\Quantum GIS Dev\qgis.lib and object C:\Program Files\Quantum GIS Dev\qgis.exp
MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'libcmtd.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
qgis_gui.lib(qgisiface.obj) : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall QgisIface::metaObject(void)const " (?metaObject at QgisIface@@UBEPBUQMetaObject@@XZ)
qgis_gui.lib(qgisiface.obj) : error LNK2001: unresolved external symbol "public: virtual void * __thiscall QgisIface::qt_metacast(char const *)" (?qt_metacast at QgisIface@@UAEPAXPBD at Z)
qgis_gui.lib(qgisiface.obj) : error LNK2001: unresolved external symbol "public: virtual int __thiscall QgisIface::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall at QgisIface@@UAEHW4Call at QMetaObject@@HPAPAX at Z)
qgis_gui.lib(qgisiface.obj) : error LNK2019: unresolved external symbol "protected: void __thiscall QgisIface::currentLayerChanged(class QgsMapLayer *)" (?currentLayerChanged at QgisIface@@IAEXPAVQgsMapLayer@@@Z) referenced in function "public: void __thiscall QgisIface::emitCurrentLayerChanged(class QgsMapLayer *)" (?emitCurrentLayerChanged at QgisIface@@QAEXPAVQgsMapLayer@@@Z)
C:\Program Files\Quantum GIS Dev\qgis.exe : fatal error LNK1120: 4 unresolved externals
Build log was saved at "file://d:\myqgis\msvc80\qgis\Debug\BuildLog.htm"
qgis - 5 error(s), 2 warning(s)
------ Build started: Project: qgis_provider_ogr_dll, Configuration: Debug Win32 ------
Linking...
   Creating library C:\Program Files\Quantum GIS Dev\lib\qgis\ogrprovider.lib and object C:\Program Files\Quantum GIS Dev\lib\qgis\ogrprovider.exp
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
qgis_gui.lib(qgisiface.obj) : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall QgisIface::metaObject(void)const " (?metaObject at QgisIface@@UBEPBUQMetaObject@@XZ)
qgis_gui.lib(qgisiface.obj) : error LNK2001: unresolved external symbol "public: virtual void * __thiscall QgisIface::qt_metacast(char const *)" (?qt_metacast at QgisIface@@UAEPAXPBD at Z)
qgis_gui.lib(qgisiface.obj) : error LNK2001: unresolved external symbol "public: virtual int __thiscall QgisIface::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall at QgisIface@@UAEHW4Call at QMetaObject@@HPAPAX at Z)
qgis_gui.lib(qgisiface.obj) : error LNK2019: unresolved external symbol "protected: void __thiscall QgisIface::currentLayerChanged(class QgsMapLayer *)" (?currentLayerChanged at QgisIface@@IAEXPAVQgsMapLayer@@@Z) referenced in function "public: void __thiscall QgisIface::emitCurrentLayerChanged(class QgsMapLayer *)" (?emitCurrentLayerChanged at QgisIface@@QAEXPAVQgsMapLayer@@@Z)
C:\Program Files\Quantum GIS Dev\lib\qgis\ogrprovider.dll : fatal error LNK1120: 4 unresolved externals
Build log was saved at "file://d:\myqgis\msvc80\qgis_provider_ogr_dll\Debug\BuildLog.htm"
qgis_provider_ogr_dll - 5 error(s), 1 warning(s)
------ Build started: Project: qgis_provider_delimitedtext_dll, Configuration: Debug Win32 ------
Linking...
   Creating library C:\Program Files\Quantum GIS Dev\lib\qgis\delimitedtextprovider.lib and object C:\Program Files\Quantum GIS Dev\lib\qgis\delimitedtextprovider.exp
MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
Embedding manifest...
Build log was saved at "file://d:\myqgis\msvc80\qgis_provider_delimitedtext_dll\Debug\BuildLog.htm"
qgis_provider_delimitedtext_dll - 0 error(s), 1 warning(s)
========== Build: 4 succeeded, 2 failed, 2 up-to-date, 0 skipped ==========


More information about the Qgis-developer mailing list