   Warning C4251
  I have a class in a dll where I want to use std::vector<>.When I compile I get the compiler warning C4251."var name" class std::vector<...> needs a dll-interface, which is used by clients of class "class where var is declared".I am using VC++6.0 author''s edition.Is there any help out there?   The Wild Wild West - Desperado! 
  #pragma warning(disable : 4251)And there will be no warmessage. OGRE, for instance, does it the same way. ;  Yes, I know that you can disable warnings by using #pragma.But my opinion is that you should not ignore warnings.I hope there is solution, how it will work without a warning.So anybody?   The Wild Wild West - Desperado! ;  Use a pointer to a vector instead, and create/destroy it yourself. This should get rid of the problem.However, this warning is useless (it is there in case you forget to interface one of your own objects, not stl constructs), so I advise disabling it. ;  This is a famouse warning flood and its happened to me before. Ive just been told to ignore the warnings by a lot of people so just ignore them - it won''t create any bad code.   Ignorance is the root of all evil 