Boost logo

Boost Users :

From: Os (os_at_[hidden])
Date: 2007-05-31 05:02:01


_CRT_NONSTDC_NO_WARNINGS did the trick, thanks.

I was already defining _SCL_SECURE_NO_DEPRECATE, plus a couple of
other warnings to turn off Windows security paranoia checks that make
my code slower than it used to be under Visual Studio 2003. That's
progress for you.

cheers,
os.

On 30/05/07, Andrew Holden <aholden_at_[hidden]> wrote:
> To make it like the Posix functions again, you would actually need to define _CRT_NONSTDC_NO_WARNINGS
>
> In fact, there is something to be said for creating an environment variable called "CL" and defining it as:
> "/D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_WARNINGS /D_SCL_SECURE_NO_WARNINGS"
>
> If that doesn't work, try
> "/D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE"
>
> This variable should silence all of Visual Studio's claims that perfectly standard functions shouldn't be used.
>
> ________________________________________
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Server Levent Yilmaz
> Sent: Wednesday, May 30, 2007 2:51 PM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] iostreams build error in Visual Studio 2005
>
> Hi Os,
> On 5/30/07, Os <os_at_[hidden] > wrote:
> In file_descriptor.cpp I get a deprecation warning from line 219:
> lseek is deprecated in favour of _lseek.
>
>
> This is due to VS 2005 being a MS product; there is nothing wrong with boost (or any other fine library for that matter). See the release notes http://www.boost.org/more/version_history.html
> (find the line with _SCL_SECURE_NO_DEPRECATE )
> Levent
>
> PS: your music is really nice, I loved it :)
>
> --
> Server Levent Yilmaz
> Mechanical Engineering
> University of Pittsburgh
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

-- 
os_at_[hidden]
http://www.collective.co.uk/
http://www.myspace.com/darkroomtheband

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