
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 <os@collective.co.uk > 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