
Seems like overkill, I only ever needed ONE #pragma warning( disable : 4786 ) to get rid of all of them At Friday 2004-05-21 05:04, you wrote:
"John Maddock" <john@johnmaddock.co.uk> wrote in message news:010c01c43f1d$0c56e7c0$19ef0352@fuji...
[snip]
I have noticed somthing else however with the current build. I'm
getting
C4786 warnings all over the place when I compile. I have tried putting #pragma warning(disable : 4786) at the start of my program, but this appears to have no effect. I wonder if it's something to do with the library. Remember I'm ising mscv6.
Well if you insist on using a broken compiler that's what you'll have to expect, I've tried really hard to suppress those warnings myself, but they never seem to stay turned off :-(
Since this is specific to msvc6 you can circumvent these warnings by placing the following in your stdafx.h. This assumes that you are using a stdafx.h, of course. All of the container includes may not be required, but this works for me, and speeds up compilations since I'm using precompiled headers.
#pragma warning( disable : 4786 ) #include <yvals.h> #pragma warning( disable : 4786 ) #include <new> #pragma warning( disable : 4786 ) #include <map> #pragma warning( disable : 4786 ) #include <set> #pragma warning( disable : 4786 ) #include <vector> #pragma warning( disable : 4786 ) #include <list> #pragma warning( disable : 4786 )
Jeff Flinn
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Victor A. Wagner Jr. http://rudbek.com The five most dangerous words in the English language: "There oughta be a law"