Thank you, linking the fortran libreries worked.<br>For those that have troubles in compiling ipopt under windows with g++ actually it is pretty simple. This is how I done it:<br><br>*** MinGW ***<br>Download the MinGW environment installer (<a href="http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/">http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/</a> mingw-get-inst-201XXXXX.exe )<br>
Launch the installer<br>Select "Download latest repository catalogue"<br>Select C:\MinGW as folder. Do not change this setting !!<br>Select the following components:<br> - C compiler<br> - C++ Compiler<br> - Fortran Compiler<br>
- MinGW Developer Toolkit<br>Open a MinGW shell: START->All programs-> MinGW-> MinGW shell<br>Type "mingw-get install msys-wget" (you'll need this in order to get ipopt third party libraries)<br>Note: From the MinGW shell you'll find the hard disk content under "/c"<br>
<br>*** Ipopt ***<br>Downolad ipopt Ipopt-3.XX.X.tgz from <a href="http://www.coin-or.org/download/source/Ipopt/">http://www.coin-or.org/download/source/Ipopt/</a> and extract it to somewhere where there is no spaces in the path (e.g. in Win7 the standard "Download" folder is fine, in WinXP it isn't.). In the remaining of this tutorial we'll assume that the ipopt folder is C:\ipopt.<br>
In the ipopt extracted folder create a "build" folder, so that you end up having C:\ipopt\build.<br>Open the MinGW shell and type "cd /c/ipopt/ThirdParty".<br>For each of {Blas|Lapack|Metis|Mumps} go in their subfolder and run from there "./get.{Blas|Lapack|Metis|Mumps}". This will download and extract them to a place that the ipopt configure will find them.<br>
Type "cd /c/ipopt/build" and then from there run, in the sequence:<br>../configure<br>make<br>make install<br><br>Kind regards to everyone,<br> Antonello<br><br><div class="gmail_quote">2012/6/8 Stefan Vigerske <span dir="ltr"><<a href="mailto:stefan@math.hu-berlin.de" target="_blank">stefan@math.hu-berlin.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
sounds like you are missing the gfortran libraries on your linkline, e.g., -lgfortran.<br>
Ipopts build includes a file share/coin/doc/Ipopt/ipopt_<u></u>addlibs_cpp.txt which lists all the flags necessary for linking with Ipopt. That may be handy...<br>
<br>
Stefan<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
Hello all.<br>
I am new to ipopt and to the list .. and I hope you'll get this email, as I<br>
didn't received any confirmation email from mailman..<br>
Any how, I am trying to build a qmake based program and the code runs well<br>
in Linux, but I need it also in windows.<br>
When I try to link it with the ipopt libraries I previously compiled I got<br>
some 5,000 errors on missing functions in fortran code (e.g.<br>
dmumps_part3.F:-1: error: undefined reference to `_gfortran_st_write').<br>
<br>
my qmake looks like:<br>
<br>
win32 {<br>
<br>
INCLUDEPATH += win32/include/coin<br>
<br>
INCLUDEPATH += win32/include/coin/ThirdParty<br>
<br>
LIBS += -L win32/lib -lipopt<br>
<br>
LIBS += -L win32/lib -lcoinmetis<br>
<br>
LIBS += -L win32/lib -lcoinmumps<br>
<br>
LIBS += -L win32/lib -lcoinblas<br>
<br>
LIBS += -L win32/lib -lcoinlapack<br>
<br>
}<br>
<br>
<br>
(where "win32" is a subfolder of my project where I copied the includes and<br>
the libraries from the MinGW compiled one)<br>
<br>
I compiled the ipopt with MinGW directly from source following section 2.3<br>
of the tutorial ("Compiling and installing IPOPT"), and I am able to run<br>
the examples.<br>
<br>
Any cue?<br>
<br>
<br>
<br>
<br></div>
______________________________<u></u>_________________<br>
Ipopt mailing list<br>
<a href="mailto:Ipopt@list.coin-or.org" target="_blank">Ipopt@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/ipopt" target="_blank">http://list.coin-or.org/<u></u>mailman/listinfo/ipopt</a><br>
</blockquote>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Antonello Lobianco<br>INRA, Laboratoire d'Economie Forestière<br>14 Rue Girardet - 54000 Nancy, France<br>Tel: <a href="tel:%2B33.652392310" value="+33652392310" target="_blank">+33.652392310</a><br>
Email: <a href="mailto:antonello.lobianco@nancy-engref.inra.fr" target="_blank">antonello.lobianco@nancy-engref.inra.fr</a><br>
<a href="http://antonello.lobianco.org/" target="_blank">http://antonello.lobianco.org</a><br>