strcpy_s not working with gcc

前端 未结 2 1863
不知归路
不知归路 2021-01-11 09:27

I have a C++11 project, and I added some strcpy_s method calls. This works on windows, but when compiling on gcc, there is an error stating that strcpy_s<

2条回答
  •  轮回少年
    2021-01-11 10:10

    GCC (or rather, glibc) does not support strcpy_s() and friends. For some ideas on where you can find a library which does support them, see here: Are there any free implementations of strcpy_s and/or TR24731-1?

提交回复
热议问题