fatal error: nlopt.hpp: No such file or directory
#include <nlopt.hpp>
build error:
/xxxxxxx/c_ik/nlopt_ik.hpp:35:21: fatal error: nlopt.hpp: No such file or directory #include <nlopt.hpp>
method of fix:
sudo apt-get --reinstall libnlopt-dev sudo apt install libnlopt-cxx-dev
libnlopt-dev is not enough .
本文详细介绍了在Linux环境下遇到fatal error: nlopt.hpp: No such file or directory错误时的解决方案,提供了具体的修复命令,包括使用sudo apt-get --reinstall libnlopt-dev和sudo apt install libnlopt-cxx-dev来重新安装和获取必要的库文件。
1277





