You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in function nlopt::opt::get_errmsg() const': Hamiltonian.cpp:(.text._ZNK5nlopt3opt10get_errmsgEv[_ZNK5nlopt3opt10get_errmsgEv]+0x5b): undefined reference to nlopt_get_errmsg'
collect2: error: ld returned 1 exit status
when trying to compile a code which call nlopt.
I compiled the nlopt 2.7.1 using the make install command and got :
Hi,
I'm getting the following linker error message :
in function
nlopt::opt::get_errmsg() const': Hamiltonian.cpp:(.text._ZNK5nlopt3opt10get_errmsgEv[_ZNK5nlopt3opt10get_errmsgEv]+0x5b): undefined reference to
nlopt_get_errmsg'collect2: error: ld returned 1 exit status
when trying to compile a code which call nlopt.
I compiled the nlopt 2.7.1 using the make install command and got :
and my cmakeList look like
I found that someone already got a similar issue but the proposed fixing does not seem to apply to my settings
The text was updated successfully, but these errors were encountered: