[Ipopt] Build error "error: linking to Fortran libraries from C fails"

Tony Kelman kelman at berkeley.edu
Wed Aug 14 21:01:42 EDT 2013


John,

I’ve seen that error when trying to use the rubenvb versions of MinGW-w64. As you found, it’s a bad interaction with configure trying to extract the libraries needed to link Fortran code, from the verbose compiler output which includes the entire GCC configure line used by rubenvb, particularly the --with-host-libstdcxx='-static -lstdc++ -lm' part. I contacted him on Sourceforge over a year ago asking if he could just add a space between -lm and the apostrophe, which I believe would fix the problem, but evidently he never made that change. Updating the autotools version used by Ipopt might also fix the issue, but that’s easier said than done and I don’t think Stefan has had time to finish that process.

If you don’t need GCC 4.8, I recommend using TDM-GCC (http://tdm-gcc.tdragon.net/) instead. It’s been the most reliable MinGW-w64 distribution that I’ve been able to find, for the purposes of building Ipopt.

-Tony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20130814/b9feeaa6/attachment.html>


More information about the Ipopt mailing list