Sorry to bother, I installed and included nlopt library in .cpp file (#include <nlopt.hpp>) and still gives me this errors :
In function `nlopt::opt::~opt()':
undefined reference to `nlopt_destroy'
undefined reference to `nlopt_create'
undefined reference to `nlopt_set_munge'
but I am sure that I initialized it right :
nlopt::opt opt(nlopt::LD_TNEWTON,4);
Do I have to link or add library in CmakeLists.txt. If so, how? Sorry, I am pretty new in this.Thank you in advance Kind regards