The situation at that time is on github
https://github.com/chenshuo/muduo/issues/470
At the time, the dll library error was connected at the end
g++ --std=c++11 -Wl,--verbose main.cc -lboost_unit_test_framework
In this way, you can find the path where g++ searches for the library, and finally found that he was looking for
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/
After deleting the wrong library, the g++ compiler looks for /usr/local/lib so that the problem is solved very well. The core solution is
g++ --std=c++11 -Wl,--verbose main.cc -lboost_unit_test_framework
Go to view the path where g++ finds the library