   multiple initialization proble m
  my Animation class has these constructors:// constructorAnimation(Sint16 x = 0, Sint16 y = 0, uint reserve = 3);Animation(const Point &pos, uint reserve = 3);// _pos is an object of type Point// constructor #1Animation::Animation(Sint16 x, Sint16 y, uint reserve): _pos(x, y), _current(0){_SprVec.reserve(reserve); // reserve space for sprites}// constructor #2Animation::Animation(const Point &pos, uint reserve): _pos(pos), _current(0){_SprVec.reserve(reserve);}Animation anim(Point(10, 0), 10);error C2374: 'anim' : redefinition; multiple initialization1>   .\main.cpp(175) : see declaration of 'anim'What's wrong?   
  Post your main.cpp file in its entirety, along with the header and source files for the Animation class.   ;Quote:Original post by sheep19Animation anim(Point(10, 0), 10);error C2374: 'anim' : redefinition; multiple initialization1>   .\main.cpp(175) : see declaration of 'anim'What's wrong?My guess is you have tried to declare anim twice in the same scope.  See C2374.   ;Quote:Original post by _fastcallQuote:Original post by sheep19Animation anim(Point(10, 0), 10);error C2374: 'anim' : redefinition; multiple initialization1>   .\main.cpp(175) : see declaration of 'anim'What's wrong?My guess is you have tried to declare anim twice in the same scope.  See C2374.That was it, thanks a lot. I was using the same name in the same scope.   