Skip to content

Need to include library deque #211

@younicoin

Description

@younicoin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions