Hi,
This is giving me some headache:
Compiler output: "src/camera.h:14: error: 'Area' was not declared in this scope"Code://FILE: AREA.H #ifndef AREA_H #define AREA_H #include <QObject> #include "camera.h" class Area { public: Area(QString text); ~Area(); static void Dispose(); static QList<Area*> *areas; QList<Camera*> *cameras; QString text; private: QString name; }; #endif //FILE:CAMERA.H #ifndef CAMERA_H #define CAMERA_H #include <QObject> #include "area.h" class Camera { public: Camera(QString text, Area* parentArea); ~Camera(); QString text; private: Area* parentArea; QString name; }; #endif
I think the issue is on the fact that area.h is including camera.h and vice-versa, so i tried to add "class Camera;" in area.h and "class Area;" in camera.h and then it gave the following output:
"src/....../listwidgethandler.h:20: error: 'Area' is not a type"
"src/....../listwidgethandler.h:21: error: 'Camera' is not a type"
Ideas??
obs: the classes with Q in the beggining aren't the problem.
Compiler: GCC 4.1
OS: Linux Kubuntu Feisty Fawn (7.03)
IDE: QDevelop