[Ipopt] Linking problems in MinGW

Stefan Vigerske stefan at math.hu-berlin.de
Fri Jun 8 12:00:18 EDT 2012


Hi,

sounds like you are missing the gfortran libraries on your linkline, 
e.g., -lgfortran.
Ipopts build includes a file share/coin/doc/Ipopt/ipopt_addlibs_cpp.txt 
which lists all the flags necessary for linking with Ipopt. That may be 
handy...

Stefan

> Hello all.
> I am new to ipopt and to the list .. and I hope you'll get this email, as I
> didn't received any confirmation email from mailman..
> Any how, I am trying to build a qmake based program and the code runs well
> in Linux, but I need it also in windows.
> When I try to link it with the ipopt libraries I previously compiled I got
> some 5,000 errors on missing functions in fortran code (e.g.
> dmumps_part3.F:-1: error: undefined reference to `_gfortran_st_write').
>
> my qmake looks like:
>
> win32 {
>
>      INCLUDEPATH += win32/include/coin
>
>      INCLUDEPATH += win32/include/coin/ThirdParty
>
>      LIBS += -L win32/lib -lipopt
>
>      LIBS += -L win32/lib -lcoinmetis
>
>      LIBS += -L win32/lib -lcoinmumps
>
>      LIBS += -L win32/lib -lcoinblas
>
>      LIBS += -L win32/lib -lcoinlapack
>
> }
>
>
> (where "win32" is a subfolder of my project where I copied the includes and
> the libraries from the MinGW compiled one)
>
> I compiled the ipopt with MinGW directly from source following section 2.3
> of the tutorial ("Compiling and installing IPOPT"), and I am able to run
> the examples.
>
> Any cue?
>
>
>
>
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt



More information about the Ipopt mailing list