Archived

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

Destroyer

[C++] Class redefinition ??

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