Quote:Without the line of code it compiles fine. Here's what ive tried so far: 0.Moving the line of code later in the class (still causes error just differnt line number 1.replaceing the HE_Graphics with Other Classes. same error 2.Searched up and down formissing ";" in included classes 3.getting rid of the class all together, this causes a similar error in a different class 4.deleting *.ncb 5.reInstalling vc++ 6.Recreating all classes 7.Deleting similar or Duplicate classes Heres the code for the Class currently giving me the prob.
error C2146: syntax error : missing ';' before identifier 'graphicsPtr'
#pragma once
#include "stdafx.h"
#include "HE_Object.h" // dont really need this here, just so i know what im using
class HE_SceneGraph
{
public:
HE_SceneGraph(void);
~HE_SceneGraph(void);
HE_Graphics graphicsPtr; // <-------- OFFENDING LINE
HE_Object world;
std::vector<HE_Object*> list;
void add(HE_Object &item);
void remove(void);
void print(void);
};