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

reqired standart library header is not included in events.hpp #670

Open
Fuuulkrum7 opened this issue Feb 26, 2025 · 1 comment
Open

reqired standart library header is not included in events.hpp #670

Fuuulkrum7 opened this issue Feb 26, 2025 · 1 comment

Comments

@Fuuulkrum7
Copy link

Fuuulkrum7 commented Feb 26, 2025

Describe the bug
Compiling mockturtle with gcc 14.2.1 fails because include/mockturtle/networks/events.hpp does not have the algorithm header from stl. This file uses remove_if, which is provided by algorithm, and this library is not included at all.

To Reproduce
Just compile mockturtle using gcc 14.2.1

Environment

  • OS: Fedora 40
  • Compiler: gcc 14.2.1
  • Compilation mode: DEBUG

Additional context

.../mockturtle/include/mockturtle/networks/events.hpp:114:27: error: «remove_if» is not a member of «std»; did you mean «remove_cv»?
  114 |     on_delete.erase( std::remove_if( std::begin( on_delete ), std::end( on_delete ),
      |                           ^~~~~~~~~
      |                           remove_cv

Check list
None

@Max-astro
Copy link

remove_if is an STL API since c++11 standard.

Check your include file path using the command gcc -v -E -x c /dev/null and see if the include path has the correct version of C++ STL headers.

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

2 participants