Monthly Archives: April 2022

WSL2 Berkeley DB g++ undefined reference to Db::open(DbTxn*, char const*, char const*, DBTYPE, unsigned int, int)

So, I’m trying to use Berkeley DB under WSL with g++ [11.1.0], and while trying to bind a test application I’m plagued with: $ g++ -g -std=c++20 -I /usr/local/BerkeleyDB.18.1/include -L /usr/local/BerkeleyDB.18.1/lib/ -l db_cxx test.cpp /usr/bin/ld: test.o: in function `main’: /home/codefool/work/chessgen/db/test.cpp:10: … Continue reading

Posted in Uncategorized | Leave a comment