mercredi 1 juin 2016

Why does mingw-w64 support strcpy_s() while tdm-gcc fails compiling that call?

I'm trying to compile an open source library from bitbucket for various platforms. Compiling for Windows works only using the mingw-w64/32 4.8 compiler. Other compilers like tdm-gcc 5.1 fail at those lines calling "strcpy_s", stating they are not defined in this scope. On Linux, compiling works without a problem using the standard gcc on Ubuntu 16.04. I'm aware of the workaround to replace the (c++ 11) strcpy_s with std::strcpy.

I don't understand why this is happening because the tdm-gcc is even more up to date than the mingw-w64 version.

Aucun commentaire:

Enregistrer un commentaire