[so] [SO] [Tema1] Warning compilare Windows

M. Alin alin_m96 at yahoo.com
Tue Mar 13 13:16:07 EET 2018


Salut,

Din cauza ca folosesc functia strdup, primesc warning la compilare: “ warning C4996: ‘strdup’: The POSIX name for this item is deprecated. Instead use the ISO C++, conformant name : _strdup. See online help for help for details”. Tin se precizez ca folosesc flag-ul  /D_CRT_SECURE_NO_DEPRECATE.

Am cautat online si am gasit ca pot sa folosesc flag-ul de compilare /D_CRT_NONSTDC_NO_DEPRECATE.

Avem voie sa folosim flag-ul acesta sau nu avem voie sa folosim strdup in tema?


Mihaila Alin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20180313/c278500c/attachment.html>


More information about the so mailing list