[Qgis-developer] QGIS build error in visual studio

A Huarte ahuarte47 at yahoo.es
Thu Jan 23 10:09:04 PST 2014


Hi dev....

the errors come from  std::swap<> calls....

void QgsSingleSymbolRendererV2::swap( QgsSingleSymbolRendererV2 & other )
{
  std::swap( mSymbol, other.mSymbol );
  std::swap( mRotation, other.mRotation );
  .......
}


am I missing something?, or there is an error chaing std::auto_ptr for QScopedPointer ?

Can someone help me ?

Thanks!
Alvaro


>________________________________
> De: A Huarte <ahuarte47 at yahoo.es>
>Para: "qgis-developer at lists.osgeo.org" <qgis-developer at lists.osgeo.org> 
>Enviado: Jueves 23 de enero de 2014 18:42
>Asunto: [Qgis-developer] QGIS build error in visual studio
> 
>
>
>Hi dev, now I have updated my master repository, I can not build QGIS in visual studio. May be this commit ? https://github.com/qgis/QGIS/commit/e8205c98c938b60569c30d5c0bbec3acab1f441a I get these errors... 2>  qgssinglesymbolrendererv2.cpp
2>c:\Archivos de programa\Microsoft Visual Studio 10.0\VC\include\utility(102): error C2248: 'QScopedPointer<T>::QScopedPointer' : cannot access private member declared in class 'QScopedPointer<T>'
2>          with
2>          [
2>              T=QgsSymbolV2
2>          ]
2>          D:\TFS_OSGeo\SIT\SIG_SDK\OSGeo\OSGeo4W\include\qt4\QtCore/qscopedpointer.h(170) : see declaration of 'QScopedPointer<T>::QScopedPointer'
2>          with
2>          [
2>              T=QgsSymbolV2
2>          ]
2>          ..\..\..\QGIS\src\core\symbology-ng\qgssinglesymbolrendererv2.cpp(59) : see reference to function template instantiation 'void std::swap<QScopedPointer<T>>(_Ty &,_Ty &)' being compiled
2>          with
2>          [
2>              T=QgsSymbolV2,
2>              _Ty=QScopedPointer<QgsSymbolV2>
2>          ]
2>c:\Archivos de programa\Microsoft Visual Studio 10.0\VC\include\utility(103): error C2248: 'QScopedPointer<T>::operator =' : cannot access private member declared in class 'QScopedPointer<T>'
2>          with
2>          [
2>              T=QgsSymbolV2
2>          ]
2> ....................
>Thanks in advance
>_______________________________________________
>Qgis-developer mailing list
>Qgis-developer at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140123/0115aa9e/attachment-0001.html>


More information about the Qgis-developer mailing list