#33 Compile Error in 'internalJSONNode.cpp'

closed-fixed
nobody
None
5
2012-06-25
2012-03-27
Anonymous
No

Building with Visual Studio 2010 Ultimate. In 'internalJSONNode.cpp', approximately line 203, the following line of code generates a compile error:
errno_t err = std::wcstombs_s(&res, temp.ptr, bytes, _string.c_str(), len);
The compiler error is: error C2039: 'wcstombs_s' : is not a member of 'std'

Discussion

  • Hmm, I don't have a Windows machine to test with. Is wctombs_s in the anonymous namespace? Try removing the std:: from in front of it and compiling again.

     
    • status: open --> closed-fixed