Jump to content
  • Advertisement
Sign in to follow this  
Section Z

Redefine error

This topic is 4186 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
OK I did that, but it implies that I initiate the class before it is compiled within the class. which I'm not doing. Maybe I am doing it somewhere else.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!