[C++] Class redefinition ??

Started by
1 comment, last by Destroyer 22 years, 9 months ago
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
Advertisement
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...
InFerN0Not all who wander are lost...
Works!

Thanks,

Destroyer

This topic is closed to new replies.

Advertisement