[vtk-developers] deprecated CRT routines in MSVS8
Goodwin Lawlor
goodwin.lawlor at ucd.ie
Tue Aug 2 05:29:32 EDT 2005
Hi,
You can also add to vtkWin32Header.h
# pragma warning ( disable : 4996 ) /* depreciated functions */
which clears up most of the warnings (not for the Utilities)
hth
Goodwin
Yianis Nikolaou wrote:
> hi,
>
> as you probably know, in MS Visual Studio 8 a bunch of CRT routines
> have been marked with a DEPRECATED keyword
> (for example strcpy, sprintf etc. see also
> http://msdn2.microsoft.com/library/wd3wzwts(en-us,vs.80).aspx
> <http://msdn2.microsoft.com/library/wd3wzwts%28en-us,vs.80%29.aspx>)
> and the compiler generates a zillion warnings when I compile VTK
>
> Could you please add in CmakeLists.txt
>
> ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)
>
> to disable these warnings by default when using the above compiler?
>
> thank you in advance
>
> yianis nikolaou
>
>------------------------------------------------------------------------
>
>_______________________________________________
>vtk-developers mailing list
>vtk-developers at vtk.org
>http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
More information about the vtk-developers
mailing list