A MSVC++ compiler error - what does it mean ?

Started by
2 comments, last by Destroyer 22 years, 4 months ago
Hi, I don''t usually run into errors where I can''t figure out what they mean and fix them. But this one is new to me and it has me stumped... error C2040: ''World'' : ''class CVectSurface *'' differs in levels of indirection from ''class std::vector >'' Any help ? Thanks, Destroyer
Advertisement
  error C2040: ''World'' : ''class CVectSurface *'' differs in levelsof indirection from ''class std::vector<class Sprite *,classstd::allocator<class Sprite *> >''  

You''re trying to convert from a vector of Sprite* to a CVectSurface*, or maybe vice versa. There''s precious little else that can be said without seeing the line of code that generates the error.
Place the cursor in front of the error number and press F1.
That''ll give you some more info
quote:Original post by Destroyer
Hi,

I don''t usually run into errors where I can''t figure out what they mean and fix them. But this one is new to me and it has me stumped...

error C2040: ''World'' : ''class CVectSurface *'' differs in levels of indirection from ''class std::vector<class Sprite *,class std::allocator<class Sprite *> >''

Any help ?

Thanks,

Destroyer


Here''s what I recommend you try first, declare your CVectSurface in it''s own namespace. Seems like a conflict where the compiler doesn''t know which function to call... I know it''s not clear but try it...




This topic is closed to new replies.

Advertisement