Jump to content
  • Advertisement
Sign in to follow this  
stroma

'struct' type redefinition

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

Share this post


Link to post
Share on other sites
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.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!