undefined symbol: nlopt_get_errmsg in NLopt

  c++, nlopt

I am trying to do the tutorial of the NLopt found here :

https://nlopt.readthedocs.io/en/latest/NLopt_Tutorial/

However I get the following error :

./test1: symbol lookup error: ./test1: undefined symbol: nlopt_get_errmsg

I think my issue is it cannot find the path of the lib however I use the following command

g++ -I/home/install/include -L/home/install/lib test1.cpp -o test1 -lnlopt -lm

where the folders are located ( I copy pasted the path to not make any mistake)
Anyone had a similar issue?

Source: Windows Questions C++

LEAVE A COMMENT