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

Flavia Circiumaru flaviacirciumaru at gmail.com
Tue Mar 13 13:31:25 EET 2018


Buna,

    In cazul in care raspunsul la intrebarea ta este negativ, ai putea
implementa tu functia strdup ca sa scapi de warning. Eu asa am procedat.

Spor!

Pe 13 mar. 2018 13:16, "M. Alin via so" <so at cursuri.cs.pub.ro> a scris:

> 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
>
>
>
> _______________________________________________
> http://ocw.cs.pub.ro/courses/so/info/lista-discutii
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20180313/a1abbbd4/attachment.html>


More information about the so mailing list