Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem when building the code: function is not a member in std #5

Open
guanghuhappysf128 opened this issue Jun 14, 2021 · 0 comments

Comments

@guanghuhappysf128
Copy link

Hi,

I got a new problem when I tried to build the code with the command ./build.py -pd:

g++ -o _build/prod/src/atom.os -c -Wall -pedantic -std=c++14 -Wno-deprecated-register -O3 -DNDEBUG -isystem/usr/local/include -isystem/home/ghu1/local/include -fPIC -Isrc -I/home/ghu1/projects/code/lapkt-installation/include _build/prod/src/atom.cxx
In file included from src/relaxed_state.hxx:4:0,
                 from _build/prod/src/relaxed_state.cxx:2:
src/fs_types.hxx:76:24: error: ‘function’ in namespace ‘std’ does not name a template type
  using Function = std::function<ObjectIdx(const ValueTuple&)>;

This problem has never occurred before. And it can simply be fixed by adding #include <functional> in file fs/src/fs_types.hxx

Not sure why this happened. And the GCC version I used is: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant