[Ipopt] Help: build hs071_cpp example

Stefan Vigerske stefan at math.hu-berlin.de
Wed Jul 8 18:03:48 EDT 2015


Hi,

did you do a make install in Ipopt before this?
If so, include more information than "it doesn't work".

Stefan

On 07/08/2015 10:24 PM, max leo correa cordova 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 advanceMax
> 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
>
>   		 	   		
>
>
>
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt
>



More information about the Ipopt mailing list