microsoft / malmo

Project Malmo is a platform for Artificial Intelligence experimentation and research built on top of Minecraft. We aim to inspire a new generation of research into challenging new problems presented by this unique environment. --- For installation instructions, scroll down to *Getting Started* below, or visit the project page for more information:
https://www.microsoft.com/en-us/research/project/project-malmo/
MIT License
4.08k stars 600 forks source link

Add missing STL stack include #904

Open ngeiswei opened 3 years ago

ngeiswei commented 3 years ago

Otherwise, on gcc 10.2.0, it complains with the error message:

In file included from /home/nilg/MalmoPlatform/Malmo/src/VideoFrameWriter.cpp:27:
/home/nilg/MalmoPlatform/Malmo/src/PosixFrameWriter.h:48:21: error: ‘stack’ in namespace ‘std’ does not name a template type
   48 |         static std::stack<pid_fd> child_process_stack;
      |                     ^~~~~
In file included from /home/nilg/MalmoPlatform/Malmo/src/VideoFrameWriter.cpp:27:
/home/nilg/MalmoPlatform/Malmo/src/PosixFrameWriter.h:1:1: note: ‘std::stack’ is defined in header ‘<stack>’; did you forget to ‘#include <stack>’?
  +++ |+#include <stack>
    1 | // --------------------------------------------------------------------------------------------------