Hi,<div>I have a problem on my Application. I want implement the simple application that is showed in the developer guide (page 20, TIm Sutton application).</div><div><br></div><div>I follow this example but when I try to compile I have this errors:</div>
<div><br></div><div><div><div>1>C:\OSGeo4W\apps\qgis-dev\include\qgsapplication.h(25) : error C2470: 'QgsApplication' : looks like a function definition, but there is no parameter list; skipping apparent body</div>
<div>1>C:\OSGeo4W\apps\qgis-dev\include\qgsproviderregistry.h(40) : error C2470: 'QgsProviderRegistry' : looks like a function definition, but there is no parameter list; skipping apparent body</div><div>1>c:\osgeo4w\apps\qgis-dev\include\qgis.h(29) : error C2470: 'QGis' : looks like a function definition, but there is no parameter list; skipping apparent body</div>
<div>1>c:\osgeo4w\apps\qgis-dev\include\qgspoint.h(31) : error C2470: 'QgsVector' : looks like a function definition, but there is no parameter list; skipping apparent body</div><div>1>c:\osgeo4w\apps\qgis-dev\include\qgspoint.h(62) : error C2470: 'QgsPoint' : looks like a function definition, but there is no parameter list; skipping apparent body</div>
<div>1>c:\osgeo4w\apps\qgis-dev\include\qgspoint.h(187) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</div><div>1>c:\osgeo4w\apps\qgis-dev\include\qgspoint.h(187) : error C2143: syntax error : missing ',' before '&'</div>
<div>1>c:\osgeo4w\apps\qgis-dev\include\qgspoint.h(188) : error C2803: 'operator ==' must have at least one formal parameter of class type</div><div>1>c:\osgeo4w\apps\qgis-dev\include\qgspoint.h(188) : error C2805: binary 'operator ==' has too few parameters</div>
<div>1>c:\osgeo4w\apps\qgis-dev\include\qgspoint.h(189) : error C2065: 'p1' : undeclared identifier</div><div>1>c:\osgeo4w\apps\qgis-dev\include\qgspoint.h(189) : error C2228: left of '.x' must have class/struct/union</div>
<div>1> type is ''unknown-type''</div><div>1>c:\osgeo4w\apps\qgis-dev\include\qgspoint.h(189) : error C2065: 'p2' : undeclared identifier</div><div>1>c:\osgeo4w\apps\qgis-dev\include\qgspoint.h(189) : error C2228: left of '.x' must have class/struct/union</div>
<div>1> type is ''unknown-type''</div><div>1>c:\osgeo4w\apps\qgis-dev\include\qgspoint.h(189) : error C2228: left of '.y' must have class/struct/union</div><div>1> type is ''unknown-type''</div>
<div>1>c:\osgeo4w\apps\qgis-dev\include\qgspoint.h(189) : error C2228: left of '.y' must have class/struct/union</div><div>1> type is ''unknown-type''</div><div>1>c:\osgeo4w\apps\qgis-dev\include\qgspoint.h(195) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</div>
<div>1>c:\osgeo4w\apps\qgis-dev\include\qgspoint.h(195) : error C2143: syntax error : missing ',' before '&'</div><div>1>c:\osgeo4w\apps\qgis-dev\include\qgspoint.h(198) : error C2065: 'p' : undeclared identifier</div>
<div>1>c:\osgeo4w\apps\qgis-dev\include\qgspoint.h(198) : error C2228: left of '.toString' must have class/struct/union</div><div>1> type is ''unknown-type''</div><div>1>c:\osgeo4w\apps\qgis-dev\include\qgspoint.h(198) : error C2228: left of '.toLocal8Bit' must have class/struct/union</div>
<div>1>c:\osgeo4w\apps\qgis-dev\include\qgspoint.h(198) : error C2228: left of '.data' must have class/struct/union</div><div>1>c:\osgeo4w\apps\qgis-dev\include\qgsrectangle.h(36) : error C2470: 'QgsRectangle' : looks like a function definition, but there is no parameter list; skipping apparent body</div>
<div>1>c:\osgeo4w\apps\qgis-dev\include\qgsrectangle.h(140) : error C2653: 'QgsRectangle' : is not a class or namespace name</div><div>1>c:\osgeo4w\apps\qgis-dev\include\qgsrectangle.h(140) : fatal error C1903: unable to recover from previous error(s); stopping compilation</div>
<div>1>main.cpp</div><div>1>C:\OSGeo4W\apps\qgis-dev\include\qgsapplication.h(25) : error C2470: 'QgsApplication' : looks like a function definition, but there is no parameter list; skipping apparent body</div>
<div>1>Generating Code...</div></div></div><div><br></div><div><br></div><div>Can anyone help me pls?</div><div><br></div><div>Thx, Bye</div>