<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<br>sorry for the lack of infomation. well I have installed Ipopt following the installation instruction. I made the 'make', 'make check' and 'make install'. Then try the hs071_cpp example using the 'Makefile' created duing the installation and all worked fine, the problem was solved. But I want to use Ipopt with other libreries like 'openmi' and so I first tried to build the example program from the terminal of linux. I have read the 'ipopt_add_libs.txt' file:<br><br><font style="" face="Times New Roman,sans-serif">-L/home/max/CoinIpopt/build/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/../../..
-L/usr/local/lib -lipopt -llapack -ldl -lcoinmumps -lblas -lgfortran -lm
-lquadmath -lcoinhsl -lcoinmetis </font><br><br>and well i create a new folder and the hs071_nlp.hpp, hs071_nlp.cpp, and mio.cpp (main) in ~/workspace/Prueba/ and made the following comand (i am not sure if it is ok):<br><br><font style="" face="Times New Roman,sans-serif">max@max-Satellite-C845:~/workspace/Prueba$ g++ -g -Wall hs071_nlp.cpp
mio.cpp -o mio -L/home/max/CoinIpopt/build/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/../../..
-L/usr/local/lib -lipopt -llapack -ldl -lcoinmumps -lblas -lgfortran -lm
-lquadmath -lcoinhsl -lcoinmetis</font><br><font style="" face="Times New Roman,sans-serif"><br></font><font style="">but i get the error:</font><font style="" face="Times New Roman,sans-serif"><br></font><font style="" face="Times New Roman,sans-serif"> </font><font style="" face="Times New Roman,sans-serif"><br></font><font style="" face="Times New Roman,sans-serif">In file included from hs071_nlp.cpp:9:0:</font><font style="" face="Times New Roman,sans-serif"><br></font><font style="" face="Times New Roman,sans-serif">hs071_nlp.hpp:12:22: fatal error: IpTNLP.hpp: No such file or directory</font><font style="" face="Times New Roman,sans-serif"><br></font><font style="" face="Times New Roman,sans-serif"> #include "IpTNLP.hpp"</font><font style="" face="Times New Roman,sans-serif"><br></font><font style="" face="Times New Roman,sans-serif"> ^</font><font style="" face="Times New Roman,sans-serif"><br></font><font style="" face="Times New Roman,sans-serif">compilation terminated.</font><font style="" face="Times New Roman,sans-serif"><br></font><font style="" face="Times New Roman,sans-serif">mio.cpp:2:34: fatal error: IpIpoptApplication.hpp: No such file or directory</font><font style="" face="Times New Roman,sans-serif"><br></font><font style="" face="Times New Roman,sans-serif"> #include "IpIpoptApplication.hpp"</font><font style="" face="Times New Roman,sans-serif"><br></font><font style="" face="Times New Roman,sans-serif"> ^</font><font style="" face="Times New Roman,sans-serif"><br></font><font style="" face="Times New Roman,sans-serif">c<font style="">ompilation terminated.</font></font><font style=""><br></font><font style=""></font><font style=""><br>I was stack here. Please could you give me any hint? I would be so grateful.<br><br>Max<br></font><font style=""><br></font><div><font style="">> Subject: Re: [Ipopt] Help: build hs071_cpp example</font><font style=""><br></font><font style="">> To: max-leo-19@hotmail.com; gregmainland@gmail.com; ipopt@list.coin-or.org</font><font style=""><br></font><font style="">> From: stefan@math.hu-berlin.de</font><font style=""><br></font><font style="">> Date: Thu, 9 Jul 2015 00:03:48 +0200</font><font style=""><br></font><font style="">> </font><font style=""><br></font><font style="">> Hi,</font><font style=""><br></font><font style="">> </font><font style=""><br></font><font style="">> did you do a make install in Ipopt before this?</font><font style=""><br></font><font style="">> If so, include more information than "it doesn't work".</font><font style=""><br></font><font style="">> </font><font style=""><br></font><font style="">> Stefan</font><font style=""><br></font><font style="">> </font><font style=""><br></font><br></div>                                            </div></body>
</html>