Archived

This topic is now archived and is closed to further replies.

[C++] Class redefinition ??

This topic is 6050 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

Hi, I''m getting the error from Microsoft Visual C++ that says error C2011: ''Sprite'' : ''class'' type redefinition ? Which as you can already guess is about my Sprite class... what does the error message mean? Any help? Thanks, Destroyer

Share this post


Link to post
Share on other sites
around the class put

#ifndef SPRITECLASS
#define SPRITECLASS

spriteclass...

#endif

I am betting that the class is in a header included in multiple files.

InFerN0

Not all who wander are lost...

Share this post


Link to post
Share on other sites