Sign in to follow this  
Section Z

Redefine error

Recommended Posts

I am getting this redefine error wwhen I am not redefining. I just can't figure it out and wondered if it was an ordering issue but probably not. Error 67 error C2460: 'MeshReference::CInstance' : uses 'MeshReference', which is being defined .h file
class MeshReference
{
public:	
	MeshReference(CInstance *meshInst, string meshName);

	CInstance *mesh;
        string name;
	
	bool isStatic;
	// collision
	bool isOccluded;;
	bool isCollided;;
	// physics
	int mass;
	float absorbance;
};

Share this post


Link to post
Share on other sites
Can you post the header file in its entirety? I don't think you've given us enough to go on as is.

Also, Googling an error code (e.g. C2460) will usually take you right to the corresponding MSDN page.

Share this post


Link to post
Share on other sites
You may want to re-read the error more carefully - it is not a redefinition error.

I highly recommend you follow jyk's suggestion and look up the error code on MSDN. The MSDN page shows a brief example of what will cause this error, which should guide you straight to the source of the problem.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this