I’m a noob with C++, but I need to resolve this problem ASAP.
I’m trying to run some C++ examples in Eclipse with Cygwin toolchain. These examples use functions like wcsncpy_s (in string.h or wchar.h).
The problem is that I can only use MS Visual Studio to compile these examples: wcsncpy_s is marked as “undeclared” even if string.h or wchar.h are included.
Is there a way to use cygwin with Eclipse and also use resources (libraries I believe) from Microsoft (like those mentioned above)? Maybe I just need to update Cygwin? Or is there no solution for this ?
Please advice 🙂
wcsncpy_sis not a standard C or C++ library function (note: I think they may have added similar function in C11, but I’m not sure). It is a function Microsoft added to their standard libraries in Visual Studio.It’s not a bad function, for what it does. But it’s non-standard. And they don’t use the usual leading underscore to indicate that it’s non-standard.