[so] [Windows Warning] cl.exe: This function or variable may be unsafe

Veronica Velciu veronica.velciu at gmail.com
Tue Mar 11 01:01:59 EET 2014


2014-03-11 0:57 GMT+02:00 Andrei Datcu <datcuandrei at gmail.com>:
> Primesc acest warning deoarece folosesc functiile strtok si fopen:
>
> xxx.c(51) : warning C4996: 'strtok': This function or variable may be
> unsafe. Consider using strtok_s instead. To disable deprecation, use
> _CRT_SECURE_NO_WARNINGS. See online help for details.
>         C:\Program Files\Microsoft Visual Studio
> 10.0\VC\INCLUDE\string.h(197) : see declaration of 'strtok'
> xxx.c(62) : warning C4996: 'fopen': This function or variable may be
> unsafe. Consider using fopen_s instead. To disable deprecation, use
> _CRT_SECURE_NO_WARNINGS. See online help for details.
>         C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\stdio.h(234) :
>
> Flagurile de compilare sunt:
>
> /nologo /W3
>
> Cum pot scapa de aceste warninguri? Poate fi depunctata o tema cu
> aceste warninguri?
> _______________________________________________
> http://ocw.cs.pub.ro/courses/so/info/lista-discutii


Scrie in regulamentul pentru teme ca poti adauga flag-ul
-D_CRT_SECURE_NO_DEPRECATE.


-- 
Veronica-Mihaela Velciu
Email: veronica.velciu at gmail.com


More information about the so mailing list