On Thu, Nov 1, 2012 at 10:38 AM, Ruben Van Boxem
<[email protected]> wrote:
> 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?

Is it properly wrapped in the extern C { } when __cplusplus is
defined?  Is __cplusplus defined correctly?

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to