[Ipopt] Help: build hs071_cpp example

Greg Horn gregmainland at gmail.com
Wed Jul 8 20:59:22 EDT 2015


Hi Max,

You still haven't pasted the error message. Could you paste the command you
run, and then the error message which comes out?

Best,
Greg

On Wed, Jul 8, 2015 at 1:24 PM max leo correa cordova <
max-leo-19 at hotmail.com> wrote:

> Hi,
> I am trying to build and run the hs071_cpp example from console. In the
> installation folder I have read the ipopt_add_libs.txt file which says
>
> -L/usr/ipopt3118_all/lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8
> -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu
> -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib -L/lib/../lib
> -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. -lipopt
> -llapack -ldl -lcoinmumps -lcoinhsl -lblas -lgfortran -lm -lgomp -lquadmath
> -lpthread -lcoinmetis
>
> I think in using the g++ command to build the program, so I write
>
> g++ -o hs071_main hs071_main.cpp hs071_nlp.cpp -L/usr/ipopt3118_all/lib
> -L/usr/lib/gcc/x86_64-linux-gnu/4.8
> -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu
> -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib -L/lib/../lib
> -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. -lipopt
> -llapack -ldl -lcoinmumps -lcoinhsl -lblas -lgfortran -lm -lgomp -lquadmath
> -lpthread -lcoinmetis
>
> but it doesn't work. I am a beginner user  of linux and Ipopt. Have you
> any hint how to build this??
> Thanks in advance
> Max
> ------------------------------
> From: gregmainland at gmail.com
> Date: Mon, 6 Jul 2015 18:46:58 +0000
> Subject: Re: [Ipopt] Help: build hs071_cpp example
> To: max-leo-19 at hotmail.com; ipopt at list.coin-or.org
>
>
> Can you paste your errors?
>
> On Mon, Jul 6, 2015 at 1:46 AM max leo correa cordova <
> max-leo-19 at hotmail.com> wrote:
>
> hello,
> I am new with Ipopt and want to use it with C++. I have made the hs071_cpp
> example using the makefile that was provided. I am trying to build it
> myself but i have errors. Could you please help me how to do that?
> Thanks in advance
> Max
>  _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20150709/64971df4/attachment.html>


More information about the Ipopt mailing list