title: ISO C++ forbids declaration of ... with no type
body: <p>I'm using C++ to make a Qt mobile application for maemo.</p>
  
  <p>I have my class declaration, but I get this error: </p>
  
  <pre><code>ISO C++ forbids declaration of 'QGeoPositionInfoSource' with no type
  </code></pre>
  
  <p>My code is following:</p>
  
  <p><strong>phonehelper.h</strong></p>
  
  <pre><code>#ifndef PHONEHELPER_H
  #define PHONEHELPER_H
  
  #include &lt;QObject&gt;
  #include &lt;QGeoPositionInfoSource&gt;
  
  
  class PhoneHelper : public QObject
  {
      Q_OBJECT
  
  public:
      explicit PhoneHelper(QObject *parent = 0);
      void GetGPSData(const char * callbackSlot);
  
  private:
      /*
       * The error occures here on the line below */
      QGeoPositionInfoSource *gpsSource;         // PROBLEM HERE
  
  private slots:
      void positionUpdated(const QGeoPositionInfo &amp;info);
  };
  
  #endif // PHONEHELPER_H
  </code></pre>
  
  <p><strong>phonehelper.cpp</strong></p>
  
  <pre><code>#include "phonehelper.h"
  
  PhoneHelper::PhoneHelper(QObject *parent) :
      QObject(parent)
  {
  }
  
  PhoneHelper::GetGPSData(const char *callbackSlot)
  {
      gpsSource = QGeoPositionInfoSource::createDefaultSource(this);
               if (gpsSource) {
                   connect(source, SIGNAL(positionUpdated(QGeoPositionInfo)),
                           this, SLOT(positionUpdated(QGeoPositionInfo)));
                   connect(source, SIGNAL(positionUpdated(QGeoPositionInfo)),
                           this, SLOT(callbackSlot(QGeoPositionInfo)));
                   gpsSource-&gt;startUpdates();
               }
  }
  
  PhoneHelper::positionUpdated(const QGeoPositionInfo &amp;info)
  {
          gpsSource-&gt;stopUpdates();
          delete gpsSource;
  }
  </code></pre>
  
  <p><strong>Project.pro</strong></p>
  
  <pre><code>DEPLOYMENTFOLDERS = # file1 dir1
  
  symbian:TARGET.UID3 = 0xE0EEBE99
  
  
  symbian:TARGET.CAPABILITY += NetworkServices
  
  # MOBILITY variable.
  CONFIG += mobility
  MOBILITY += location
  
  SOURCES += main.cpp mainwindow.cpp \
      phonehelper.cpp
  HEADERS += mainwindow.h \
      phonehelper.h
  FORMS += mainwindow.ui
  
  
  include(deployment.pri)
  qtcAddDeployment()
  </code></pre>
  
  <p>What does the above error mean?</p>