I'm not a MingGW person, so I'll take your word for this.
Casey
When I tried to build the most recent wx2.9.x with MinGW4.7.1 + -std=gnu++11,it is fine;but after that when I tried to build wxCurl lib with the same compiler(regardless has option -std=gnu++11 or not),it failed,saying that somewhere in the src 'isnan' does not defined in that scope bla;but if I changed to MinGW4.5 without -std=gnu+11,everyting goes fine.
Appreciated for the solution,I really wanna turn to c++11 with wx.
Regards,
Sam
-------------------------------------------------------------------
Windows 10 64bit
VS Community 2019
msys2-mingw13.2.0 C::B character set: UTF-8/GBK(Chinese)
wxWidgets 3.3/3.2.4 Unicode Mono Static gcc static build
../src/base.cpp:67:9: warning: unused parameter 'crlptr' [-Wunused-parameter]
../src/base.cpp: In member function 'virtual wxTimeSpan wxCurlProgressBaseEvent::GetEstimatedTime() const':
../src/base.cpp:221:30: error: 'isnan' was not declared in this scope
../src/base.cpp:221:30: note: suggested alternative:
In file included from c:\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.1/../../../../include/c++/4.7.1/random:38:0,
from c:\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.1/../../../../include/c++/4.7.1/bits/stl_algo.h:67,
from c:\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.1/../../../../include/c++/4.7.1/algorithm:63,
from c:\person\codelite\wx312\include/wx/dynarray.h:20,
from c:\person\codelite\wx312\include/wx/wx.h:17,
from ../src/base.cpp:19:
c:\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.1/../../../../include/c++/4.7.1/cmath:635:5: note: 'std::isnan'
../src/base.cpp: In member function 'wxString wxCurlProgressBaseEvent::GetHumanReadableSpeed(const wxString&, int) const':
../src/base.cpp:247:23: error: 'isnan' was not declared in this scope
../src/base.cpp:247:23: note: suggested alternative:
In file included from c:\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.1/../../../../include/c++/4.7.1/random:38:0,
from c:\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.1/../../../../include/c++/4.7.1/bits/stl_algo.h:67,
from c:\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.1/../../../../include/c++/4.7.1/algorithm:63,
from c:\person\codelite\wx312\include/wx/dynarray.h:20,
from c:\person\codelite\wx312\include/wx/wx.h:17,
from ../src/base.cpp:19:
c:\mingw\bin\../lib/gcc/i686-pc-mingw32/4.7.1/../../../../include/c++/4.7.1/cmath:635:5: note: 'std::isnan'
In file included from ../src/base.cpp:29:0:
..\include/wx/curl/base.h: In constructor 'wxCurlDownloadEvent::wxCurlDownloadEvent()':
..\include/wx/curl/base.h:170:30: warning: 'wxCurlDownloadEvent::m_rDownloadNow' will be initialized after [-Wreorder]
..\include/wx/curl/base.h:170:12: warning: 'double wxCurlDownloadEvent::m_rDownloadTotal' [-Wreorder]
../src/base.cpp:267:1: warning: when initialized here [-Wreorder]
In file included from ../src/base.cpp:29:0:
..\include/wx/curl/base.h: In constructor 'wxCurlUploadEvent::wxCurlUploadEvent()':
..\include/wx/curl/base.h:214:28: warning: 'wxCurlUploadEvent::m_rUploadNow' will be initialized after [-Wreorder]
..\include/wx/curl/base.h:214:12: warning: 'double wxCurlUploadEvent::m_rUploadTotal' [-Wreorder]
../src/base.cpp:302:1: warning: when initialized here [-Wreorder]
In file included from ../src/base.cpp:29:0:
..\include/wx/curl/base.h: In constructor 'wxCurlBase::wxCurlBase(const wxString&, const wxString&, const wxString&, wxEvtHandler*, int, long int)':
..\include/wx/curl/base.h:600:29: warning: 'wxCurlBase::m_iProxyPort' will be initialized after [-Wreorder]
..\include/wx/curl/base.h:545:29: warning: 'CURL* wxCurlBase::m_pCURL' [-Wreorder]
../src/base.cpp:394:1: warning: when initialized here [-Wreorder]
In file included from ../src/base.cpp:29:0:
..\include/wx/curl/base.h:613:29: warning: 'wxCurlBase::m_nFlags' will be initialized after [-Wreorder]
..\include/wx/curl/base.h:604:29: warning: 'bool wxCurlBase::m_bVerbose' [-Wreorder]
../src/base.cpp:394:1: warning: when initialized here [-Wreorder]
mingw32-make: *** [gccmswu\wxcurl_lib_base.o] Error 1
Regards,
Sam
-------------------------------------------------------------------
Windows 10 64bit
VS Community 2019
msys2-mingw13.2.0 C::B character set: UTF-8/GBK(Chinese)
wxWidgets 3.3/3.2.4 Unicode Mono Static gcc static build