_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
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@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Server Levent Yilmaz Sent: Wednesday, May 30, 2007 2:51 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] iostreams build error in Visual Studio 2005
Hi Os, On 5/30/07, Os
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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- os@collective.co.uk http://www.collective.co.uk/ http://www.myspace.com/darkroomtheband