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

Need to include library deque #211

Open
younicoin opened this issue Nov 22, 2023 · 0 comments
Open

Need to include library deque #211

younicoin opened this issue Nov 22, 2023 · 0 comments

Comments

@younicoin
Copy link

younicoin commented Nov 22, 2023

Compiling avian-4.1.0 get error in file of tests. It needs c module deque:

./autogen.sh
export BDB_PREFIX='/usr/local/db4_new/db4'
./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include"
make

  test/cuckoocache_tests.cpp: In function ‘void cuckoocache_tests::test_cache_generations()’:
  test/cuckoocache_tests.cpp:365:14: error: ‘deque’ is not a member of ‘std’
    365 |         std::deque<block_activity> last_few;
        |              ^~~~~
  test/cuckoocache_tests.cpp:11:1: note: ‘std::deque’ is defined in header ‘<deque>’; did you forget to ‘#include <deque>’?
     10 | #include <thread>
    +++ |+#include <deque>
  
vim src/test/cuckoocache_tests.cpp
  #include <deque>

make

after adding this line to start of file src/test/cuckoocache_tests.cpp
#include <deque>
and running make again, make completed successfully

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