[vtkusers] warning C4996: 'strcpy' was declared deprecated

Mathieu Malaterre mathieu.malaterre at kitware.com
Wed Apr 5 14:17:11 EDT 2006


Carlos Capdepon wrote:
> How can I disable " warning C4996: 'strcpy' was declared deprecated 
> " when I compile VTK in Visual Studio 8 2005 Express ?¿?

You can edit the toplevel VTK/CMakeLists.txt and add:

ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)


HTH
Mathieu



More information about the vtkusers mailing list