Cannot define a class (unknown type name 'class'

Hello,
I've taken about a year break from c++ and I decided to get back into and it's fighting me :(
So I'm trying to declare a class Configure , and I just cannot seem to get it right.

This is what I have so far in my Configure.h file which is where I am getting the error:

1
2
3
4
5
6
7
8
9
10
#ifndef __CONFIGURE_H_INCLUDED__
#define __CONFIGURE_H_INCLUDED__

class Configure{
  public:
    some functions
  private:
    some variables
};
#endif 


When I try to compile this I get [Error] unknown type name 'class'
I'm using Devc++ if that makes a difference.
I have a main and a cpp but as far as I can tell they all work correctly it's just this header file that I can't get working.

EDIT: Solved, apparently it thought my header file was not a c++ file so I had to do #ifdef _cplus
never had to do that before.
Last edited on
There's nothing wrong with that blueprint. You'll have to post the actual code that's generating the error. In particular, the error should tell you exactly what line the problem is occuring on... post that line.
Topic archived. No new replies allowed.