Hi, I'd like to compile sdcv with mingw-64 on Windows but bumped into following errors:
$ cmake -G "MinGW Makefiles" -DCMAKE_SH="CMAKE_SH-NOTFOUND" ../sdcv-0.5.2
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe
-- Check for working C compiler: C:/msys64/mingw64/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/msys64/mingw64/bin/g++.exe
-- Check for working CXX compiler: C:/msys64/mingw64/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CXX_SUPPORTS_CXX11
-- Performing Test CXX_SUPPORTS_CXX11 - Success
-- Found ZLIB: C:/msys64/mingw64/lib/libz.dll.a (found version "1.2.11")
-- Found PkgConfig: C:/msys64/mingw64/bin/pkg-config.exe (found version "0.29.2")
-- Checking for one of the modules 'glib-2.0'
-- Found GLib2: glib-2.0;intl C:/msys64/mingw64/include/glib-2.0;C:/msys64/mingw64/lib/glib-2.0/include;C:/msys64/mingw64/include
-- Looking for include file glib/gregex.h
-- Looking for include file glib/gregex.h - not found
-- REQUIRED_VARS
-- Looking for mmap
-- Looking for mmap - not found
-- Looking for locale.h
-- Looking for locale.h - found
-- Configuring done
-- Generating done
-- Build files have been written to: D:/James/Work/build-sdcv
$ mingw32-make.exe
Scanning dependencies of target sdcv
[ 12%] Building CXX object CMakeFiles/sdcv.dir/src/sdcv.cpp.obj
[ 25%] Building CXX object CMakeFiles/sdcv.dir/src/readline.cpp.obj
[ 37%] Building CXX object CMakeFiles/sdcv.dir/src/libwrapper.cpp.obj
[ 50%] Building CXX object CMakeFiles/sdcv.dir/src/utils.cpp.obj
In file included from C:/msys64/mingw64/include/glib-2.0/glib/gi18n.h:23:0,
from D:\James\Work\sdcv-0.5.2\src\utils.cpp:29:
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(int)':
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h:6403:50: error: 'libintl_vsnprintf' is not a member of 'std'
{ return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, 4 * sizeof(int),
^
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h:6403:50: note: suggested alternative:
C:/msys64/mingw64/include/libintl.h:379:12: note: 'libintl_vsnprintf'
extern int vsnprintf (char *, size_t, const char *, va_list);
^
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(unsigned int)':
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h:6408:50: error: 'libintl_vsnprintf' is not a member of 'std'
{ return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
^
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h:6408:50: note: suggested alternative:
C:/msys64/mingw64/include/libintl.h:379:12: note: 'libintl_vsnprintf'
extern int vsnprintf (char *, size_t, const char *, va_list);
^
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(long int)':
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h:6414:50: error: 'libintl_vsnprintf' is not a member of 'std'
{ return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, 4 * sizeof(long),
^
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h:6414:50: note: suggested alternative:
C:/msys64/mingw64/include/libintl.h:379:12: note: 'libintl_vsnprintf'
extern int vsnprintf (char *, size_t, const char *, va_list);
^
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(long unsigned int)':
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h:6419:50: error: 'libintl_vsnprintf' is not a member of 'std'
{ return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
^
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h:6419:50: note: suggested alternative:
C:/msys64/mingw64/include/libintl.h:379:12: note: 'libintl_vsnprintf'
extern int vsnprintf (char *, size_t, const char *, va_list);
^
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(long long int)':
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h:6425:50: error: 'libintl_vsnprintf' is not a member of 'std'
{ return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
^
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h:6425:50: note: suggested alternative:
C:/msys64/mingw64/include/libintl.h:379:12: note: 'libintl_vsnprintf'
extern int vsnprintf (char *, size_t, const char *, va_list);
^
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(long long unsigned int)':
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h:6431:50: error: 'libintl_vsnprintf' is not a member of 'std'
{ return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
^
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h:6431:50: note: suggested alternative:
C:/msys64/mingw64/include/libintl.h:379:12: note: 'libintl_vsnprintf'
extern int vsnprintf (char *, size_t, const char *, va_list);
^
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(float)':
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h:6440:50: error: 'libintl_vsnprintf' is not a member of 'std'
return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
^
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h:6440:50: note: suggested alternative:
C:/msys64/mingw64/include/libintl.h:379:12: note: 'libintl_vsnprintf'
extern int vsnprintf (char *, size_t, const char *, va_list);
^
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(double)':
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h:6449:50: error: 'libintl_vsnprintf' is not a member of 'std'
return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
^
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h:6449:50: note: suggested alternative:
C:/msys64/mingw64/include/libintl.h:379:12: note: 'libintl_vsnprintf'
extern int vsnprintf (char *, size_t, const char *, va_list);
^
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h: In function 'std::__cxx11::string std::__cxx11::to_string(long double)':
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h:6458:50: error: 'libintl_vsnprintf' is not a member of 'std'
return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
^
C:/msys64/mingw64/include/c++/7.3.0/bits/basic_string.h:6458:50: note: suggested alternative:
C:/msys64/mingw64/include/libintl.h:379:12: note: 'libintl_vsnprintf'
extern int vsnprintf (char *, size_t, const char *, va_list);
^
mingw32-make[2]: *** [CMakeFiles\sdcv.dir\build.make:105: CMakeFiles/sdcv.dir/src/utils.cpp.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:67: CMakeFiles/sdcv.dir/all] Error 2
mingw32-make: *** [Makefile:151: all] Error 2