From: Ruben V. B. <van...@gm...> - 2012-11-01 14:38:54
|
Dear list, Using MinGW-w64 v2.0.7 and my 4.7.2 toolchain, I get a build failure in LLVM related to strerror_s. It performs a CMake check to see if the function is declared, and finds it (I configured the headers with --enable-secure-api as always) so it defines the config.h guard macro. When the function is used in C++ code though, it is not found. I reduced this to #include <string.h> void f() { strerror_s("bla",3,4); } which, when compiled as C++, gives the error of no strerror_s declared, but when compiled as C, works fine. This looks like a pure MinGW-w64 bug, what can I do to fix it? Thanks, Ruben |