0
我是C++和BB10 begainer开发者,我有一个小问题,而在编译'QGeoCoordinate' does not name a type
两个HPP和CPP 这是我的HPP
错误:“QGeoCoordinate”没有指定类型
#ifndef GLOBALOBJECTS_HPP_
#define GLOBALOBJECTS_HPP_
#include <QtLocationSubset/QGeoCoordinate>
namespace bb { namespace cascades { class Application; }}
extern QGeoCoordinate currentCoordinates;
extern double someVar;
#endif
这是我的CPP
#include "GlobalObjects.hpp"
#include <QtLocationSubset/QGeoCoordinate>
namespace bb { namespace cascades { class Application; }}
QGeoCoordinate currentCoordinates;
double someVar;
注意
1- someVar的作品不错,但在currentCoordinates问题对象
2 - 我加lQtLocationSubset
LIB我.pro文件
什么问题,到底是什么? – sashoalm
命名空间中是否有'QGeoCoordinate'? – hmjd
编译时我得到“'QGeoCoordinate'没有命名一个类型” – JustMe