cannot find -lIpopt, collect2: error: ld returned 1 exit status #712
wladimirpetrov
started this conversation in
General
Replies: 1 comment 1 reply
-
It should be Depending on where you installed Ipopt, you may have to let the compiler know where to look for the library with an appropriate |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
May I ask you to help me out please.
I'm currently trying to implement optimizer C++ library on my research.
I decided to try Ipopt. I followed all instructions https://weigao.space/how/how_to_install_IPOPT(C++)_in_Ubuntu/proceduresEN.html that is similar to the documentation you have here : https://coin-or.github.io/Ipopt/INSTALL.html
In order to check how it works I decided to compare results I received in Matlab (fmincon function) with newly installed IPOPT.
I have a simple task:
I wrote a pretty much simple code in C++ for solving this task.
Then I tried to run the code above by using the command
g++ -o farmer_problem farmer_problem.cpp -lIpopt
and I received an error:
What should I do to solve the issue? Thank you in advance for your time!
Beta Was this translation helpful? Give feedback.
All reactions