且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

to_string不是std的成员,说g ++(mingw)

更新时间:2023-11-14 22:24:52

这是MinGW下的一个已知错误。 相关的Bugzilla 。在评论部分,您可以获得一个补丁,以使其与MinGW协同工作。

This is a known bug under MinGW. Relevant Bugzilla. In the comments section you can get a patch to make it work with MinGW.

这个问题在MinGW-w64发行版中得到了修正,它比 MinGW-w64项目。尽管有这个名字,该项目还提供了32位和64位的工具链。 Nuwen MinGW发行版也解决了这个问题。

This issue has been fixed in MinGW-w64 distros higher than GCC 4.8.0 provided by the MinGW-w64 project. Despite the name, the project provides toolchains for 32-bit along with 64-bit. The Nuwen MinGW distro also solves this issue.