ISO C++ forbids declaration of ‘Image’ with no type ??

HI I'm writing a school programming homework and the following scene.h is a header file for class Scene:

// header file of image class
#ifndef MYFILE_H
#define MYFILE_H

#include "png.h"
#include "image.h"



class Scene {
public:

Scene(int max);
~Scene ();
Scene(const Scene & source);
const Scene & operator= (const Scene &source);
void changemaxlayers (int newmax);
void addpicture (const char *FileName, int index, int x, int y);
void changelayer (int index, int newindex);
void translate (int index, int xcoord, int ycoord);
void deletepicture (int index);
Image* getpicture (int index) const ;
Image drawscene () const ;


private:

Image **imageArr;
int *xCoord;
int *yCoord;
int maxSize;
void clear();
void copy(const Scene &source);
};

#endif


after compiling I keep getting the errors:

g++ -c -g -O0 -Wall -Werror scene.cpp
In file included from scene.cpp:1:
scene.h:22: error: ISO C++ forbids declaration of ‘Image’ with no type
scene.h:22: error: expected ‘;’ before ‘*’ token
scene.h:23: error: ‘Image’ does not name a type
scene.h:28: error: ISO C++ forbids declaration of ‘Image’ with no type
scene.h:28: error: expected ‘;’ before ‘*’ token
scene.cpp: In constructor ‘Scene::Scene(int)’:
scene.cpp:8: error: ‘imageArr’ was not declared in this scope
scene.cpp:8: error: expected type-specifier before ‘image’
scene.cpp:8: error: expected ‘;’ before ‘image’
scene.cpp:9: error: invalid type argument of ‘unary *’
scene.cpp: In destructor ‘Scene::~Scene()’:
scene.cpp:17: error: ‘imageArr’ was not declared in this scope
scene.cpp: At global scope:
scene.cpp:22: error: expected unqualified-id before ‘void’


Can someone tell me what is wrong with my header file ?
It tells you that Image isn't a type name. Does it really starts in uppercase? Were there any errors in image.h?
Topic archived. No new replies allowed.