[Qgis-developer] Compiling QGis related Application

Tim Sutton tim at linfiniti.com
Wed Dec 19 22:00:10 EST 2007


Hi

Could you supply the whole .pro file? Also detailed compiler stdout
would help. You should be seeing something like -DCORE_EXPORT on
stdout when compiling...are you getting it?

Regards

Tim

2007/12/19, Murat AHAT <murat.ahat at gmail.com>:
> Dear All,
>
> I have just started to build a gis related application, and after some
> searching, i have chosen QGis to be one of my dependent platform
> together with Qt.
>
> I am using Ubuntu Gutsy with Kdevelop+QtDesigner.
>
> My Starting point was the First C++ Tutorial from the QGis Blog. I have
> installed QGis 0.9 as well as 0.8 and both of them giving the same
> errors:
>
> ....
> /usr/local/include/qgis/qgsapplication.h:21: error: expected identifier
> before numeric constant
> /usr/local/include/qgis/qgsapplication.h:21: error: expected
> unqualified-id before numeric constant
> /usr/local/include/qgis/qgsproviderregistry.h:38: error: expected
> identifier before numeric constant
> /usr/local/include/qgis/qgsproviderregistry.h:38: error: expected
> unqualified-id before numeric constant
> ......
>
> And those lines are the exact lines that class definitions take place.
>
> for example from "/usr/local/include/qgsapplication.h":
>
> 15:/* $Id: qgsapplication.h 7130 2007-08-09 04:06:41Z timlinux $ */
> 16:#ifndef QGSAPPLICATION_H
> 17:#define QGSAPPLICATION_H
> 18:
> 19:#include <QApplication>
> 20:
> 21:class CORE_EXPORT QgsApplication: public QApplication // line 21 here
> 22:{
> ....
>
> I have a line inside .pro file like "DEFINES += CORE_EXPORT".
>
> So, how can I fix these problems? Any idea or suggestion will be
> appreciated.
>
>
> Thanks in advance.
>
> Murat
>
>
>
>
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.qgis.org
> http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer
>


-- 
Tim Sutton
QGIS Project Steering Committee Member - Release  Manager
Visit http://qgis.org for a great open source GIS
openModeller Desktop Developer
Visit http://openModeller.sf.net for a great open source ecological
niche modelling tool
Home Page: http://tim.linfiniti.com
Skype: timlinux
Irc: timlinux on #qgis at freenode.net



More information about the Qgis-developer mailing list