Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add missing STL stack include#904

Open
ngeiswei wants to merge 1 commit into
microsoft:master from
ngeiswei:fix-missing-stl-include
Open

Add missing STL stack include #904
ngeiswei wants to merge 1 commit into
microsoft:master from
ngeiswei:fix-missing-stl-include

Conversation

@ngeiswei

@ngeiswei ngeiswei commented Jan 5, 2021

Copy link
Copy Markdown

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 | // --------------------------------------------------------------------------------------------------

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 | // --------------------------------------------------------------------------------------------------
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /