Uffe Kousgaard wrote: > From: "Daniel Morissette" <[EMAIL PROTECTED]> >> Which compiler produces this error? > > It was VC6. With VC7 (2003) everything works OK. > > With VC8 (2005) a new (small) problem comes up. Compilation is fine, but you > get thousands of warnings unless these 2 defines are included: > > #define _CRT_SECURE_NO_DEPRECATE 1 > #define _CRT_NONSTDC_NO_DEPRECATE 1 > > Adding this to mitab.h is fairly easy, but there seem to be no single, > common header file for cpl and ogr.
Folks, Note that the "current" cpl_port.h in gdal/port includes this: /* -------------------------------------------------------------------- */ /* The following apparently allow you to use strcpy() and other */ /* functions judged "unsafe" by microsoft in VS 8 (2005). */ /* -------------------------------------------------------------------- */ #ifdef _MSC_VER # ifndef _CRT_SECURE_NO_DEPRECATE # define _CRT_SECURE_NO_DEPRECATE # endif # ifndef _CRT_NONSTDC_NO_DEPRECATE # define _CRT_NONSTDC_NO_DEPRECATE # endif #endif Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, [EMAIL PROTECTED] light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/mitab/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/mitab/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
