提问人:Kuro 提问时间:11/9/2023 最后编辑:Alan BirtlesKuro 更新时间:11/9/2023 访问量:34
未找到 Boost 路径,makefile
Boost Path not found, makefile
问:
一直说boost文件不存在。我在 Windows 上的 gitbash 上运行。错误如下。我不知道如何解决它,我已经在我的提升目录中设置了 include -I 标志,我的环境路径也包括提升目录。
make -f Makefile
g++ -O3 -std=c++14 -o Exp.o -c Exp.cpp -g -I/b/ProgramData/libtorch_2_10/include -I/b/ProgramData/libtorch_2_10/include/torch/csrc/api/include -I/b/'Program Files'/boost/boost_1_82_0/boost
Exp.cpp:7:10: fatal error: boost/algorithm/string.hpp: No such file or directory
7 | #include <boost/algorithm/string.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:38: Exp.o] Error 1
答: 暂无答案
评论
-I/b/'Program Files'/boost/boost_1_82_0/boost
-I/b/'Program Files'/boost/boost_1_82_0
boost_1_82_0
/b/'Program Files'/boost/boost_1_82_0/boost/boost/algorithm/string.hpp
ls -al /b/'Program Files'/boost/boost_1_82_0/boost/boost/algorithm/string.hpp
string.hpp
conda install -c conda-forge boost