我编写的代码编译,并在Linux上执行,没有使用gcc的问题。但是,使用MinGW在Windows上似乎没有编译相同的代码。以下是代码段:
std::future<void> gameTimer;
这是我得到的错误:
In file included from ..\prohect\main.cpp:1:0: field 'gameTimer' has incomplete type 'std::future<void>
std::future<void> gameTimer;
^~~~~~~~~
In file included from ..\project\project.h:12:0, from ..\project\main.cpp:1: declaration of 'class std::future<void>'
class future;
^~~~~~
我是否遗漏了MinGW安装中的内容?