wcstold not defined in MSVS 2012 XP (v_110xp) RELEASE mode

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
User avatar
Super wx Problem Solver
Super wx Problem Solver
Posts: 375
Joined: Fri Dec 09, 2016 7:28 am

wcstold not defined in MSVS 2012 XP (v_110xp) RELEASE mode

Post by cutecode » Sat Dec 24, 2016 8:48 am


I have Visual studio 2013 and if I switch compilation to 2012 Windows XP (v_110xp) RELEASE then function wcstold becomes undefined
but in DEBUG mode it compliles without errors

Code: Select all

#include <wchar.h>
long double strtoLD0(LPCTSTR lpsz)
	wchar_t* endptr = NULL;
	return wcstold(lpsz, &endptr);
	//	return wxAtof(lpsz);

// 'Main program' equivalent: the program execution "starts" here
bool MyApp::OnInit()
    // call the base class initialization method, currently it only parses a
    // few common command-line options but it could be do more in the future
    if ( !wxApp::OnInit() )
        return false;
I tried this code on MSVS 2013, Ubunto and MAC OSX and it compiles without erros on RELEASE/DEBUG
Could you help me to scope this problem?
wx 3.1.4 win/mac/linux

Alexander Saprykin

Post Reply