   Problem with gcc
  I recently switched to linux and am now using code::blocks for my C++ ide.  I chose for CB to use g++/gdb for compiling and debugging.But I'm getting strange errors.  For example, when I create the file box.h:#ifndef BOX_H#define BOX_Hclass box {public:    float hight;    float width;    float depth;    box(float h, float w, float d):hight(h),width(w),depth(d)    {}};#endifI get the error:/home/daniel/Documents/C++/opengl-test/box.h|4|error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘box’|Why should I have to put anything before 'box'?Thanks.[/source]   
  It probably depends on the source file that box.h is included in. Could you post that (at least up to the point where box.h is included).Might even sound like gcc is trying to compile this thing as C instead of C++. Are you sure the source file has a C++ extension, like .cpp?PS: It's spelled 'height', despite aligning nicer this way.   ;  You where right, it was trying to compile it as C.Thanks.   