'struct' type redefinition

Started by
0 comments, last by Seriema 19 years, 6 months ago
i was have 2 vector code. one of them was with "class" and the other was "struct" i wanted to make one vector for these. i deleted the class then optimize the class using vectors.. but i got this error: error C2011: 'CVector3' : 'struct' type redefinition i am using visual c++ 6. has anyone any idea to solve this? sorry for bad english
+-+-+-+-+-STR
Advertisement
without seeing some code I can only recommend this.

and based on you what you said, my guess is that you have a 'class CVector3' AND 'struct CVector3'. struct and class are the same in C++, except that struct has default public members and class has default private members.
[ ThumbView: Adds thumbnail support for DDS, PCX, TGA and 16 other imagetypes for Windows XP Explorer. ] [ Chocolate peanuts: Brazilian recipe for home made chocolate covered peanuts. Pure coding pleasure. ]

This topic is closed to new replies.

Advertisement