Cannot compile using tutorial code

Hi Tim,

Im using your tutorial code to learn QGIS with 0.9.1, now when i try to compile a very simplified version of the code i receive the following errors:

In file included from main.cpp:28:
/usr/include/qgis/qgsapplication.h:21: error: function definition does not declare parameters
main.cpp: In function ‘int main(int, char**)’:
main.cpp:33: error: ‘QgsApplication’ was not declared in this scope
main.cpp:33: error: expected `;' before ‘app’
main.cpp:37: error: ‘app’ was not declared in this scope
main.cpp: At global scope:
main.cpp:30: warning: unused parameter ‘argc’
main.cpp:30: warning: unused parameter ‘argv’
make: *** [main.o] Error 1

is this error due to the version im using or the .pro file paths as it seems to be finding the qgsapplication header file?

thanks in advance
nathan.

Reply