[Ipopt] Ipopt config and FORTRAN_INTEGER_TYPE

Stefan Vigerske stefan at math.hu-berlin.de
Thu May 11 10:50:41 EDT 2017


Hi,

yes, seems correct.
I've added that to trunk and it should make it to the next release.

Thanks,
Stefan

On 05/11/2017 04:21 PM, David Wilkinson wrote:
> I have been trying to compile latest Bonmin 1.8.4, which includes Ipopt 
> 3.12.4, on Microsoft Visual Studio.
> 
> I started with some older Visual Studio project files, which were 
> working with Bonmin 1.3.2, and received a lot of errors related to the 
> symbols BONMIN_BUILD, IPOPT_BUILD etc., which were not used in Bonmin 1.32.
> 
> I was able to eliminate almost all the errors by suitable definition of 
> these symbols in the various projects, but there was one issue related 
> to the FORTRAN_INTEGER_TYPE symbol that remained..
> 
> This symbol is defined (as int) in Ipopt\src\Common\config_default.h but 
> not in Ipopt\src\Common\config_ipopt_default.h. Therefore if IPOPT_BUILD 
> is not defined (as in the libBonmin project), there is a compilation 
> failure in the statement
> 
> typedef FORTRAN_INTEGER_TYPE ipfint;
> 
> which appears in Ipopt\src\Common\IpTypes.hpp
> 
> Bottom line:
> 
> There needs to be a definition of FORTRAN_INTEGER_TYPE in 
> Ipopt\src\Common\config_ipopt_default.h.
> 
> I had a friend compile Bonmin/Ipopt on Linux, and the generated 
> Ipopt\src\Common\config.h and Ipopt\src\Common\config_ipopt.h both 
> contain the line
> 
> #define FORTRAN_INTEGER_TYPE int
> 
> I hope this simple fix to Ipopt\src\Common\config_ipopt_default.h can be 
> made in the next version.
> 
> Otherwise the only way to proceed on Visual Studio without changing 
> source code is to put FORTRAN_INTEGER_TYPE=int in the preprocessor 
> symbols of the Visual Studio libBonmin project (or to define 
> IPOPT_BUILD, which seems wrong).
> 
> Thanks,
> 
> David Wilkinson
> 
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> https://urldefense.proofpoint.com/v2/url?u=https-3A__list.coin-2Dor.org_mailman_listinfo_ipopt&d=DwICAg&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=BRcuJnQr5NAzU29t80hk2rsLc4vrlRySBDabuq0O1ZI&m=e1YnhT7r4i9cOl7LR5_nhR7e7CGsT9ApTdM5iMVV2kE&s=Y_xBYxIagB5RgeOvZqlLiV5bXamamGfxuqSszcjqPU0&e= 
> 


-- 
http://www.gams.com/~stefan


More information about the Ipopt mailing list