|
Boost Users : |
From: Bill Buklis (boostuser_at_[hidden])
Date: 2006-08-15 19:22:44
To ignore the "safe library" warnings all you should need are
_CRT_SECURE_NO_DEPRECATE (for C run-time library) and
_SCL_SECURE_NO_DEPRECATE (for C++ STL library). The other define,
_CRT_NONSTDC_NO_DEPRECATE, is for something else entirely. This define gives
a warning if you use any common, but non-standard function names. For
example, itoa instead of _itoa. I don't know for sure but I would be
surprised if boost used of any of these non-standard names as they would not
be guaranteed to exist on all compilers.
-- Bill --
> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Gennaro Prota
> Sent: Tuesday, August 15, 2006 4:43 PM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] [format] When compiling with vc8 I get a
> warning
>
> On Tue, 15 Aug 2006 22:18:49 +0100, Eoin
> <eoin-keyword-boostusers.07781a_at_[hidden]> wrote:
>
> >
> >>> Hello, when compiling one of my projects which uses Boost.Format I get
> >>> the compiler warning shown below. I have defined both
> >>> _CRT_SECURE_NO_DEPRECATE & _CRT_NONSTDC_NO_DEPRECATE
> >>>
> >>
> >> _SCL_SECURE_NO_DEPRECATE? :-)
> >>
> >Yes that worked perfectly, thank you very much indeed :-) .
>
> You are welcome :-) If you prefer, you can also disable the warning
> (from the command line, in the IDE, or programmatically with #pragma
> warning) or you can increase its level (by default it is a level 1
> warning, but you can move it to level 4, for instance). Or you could
> prepare wrapping headers, as hinted at in the thread "[general] MSVC71
> Warnings Off?"; that's in line with the general suggestions of
> Alexandrescu/Sutter "C++ Coding Standards".
>
> --
> [ Gennaro Prota, C++ developer. Library designer. ]
> [ For Hire http://gennaro-prota.50webs.com/ ]
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net