[Ipopt] jipotpt.cpp compilation fails - Ipopt-3.11.9

Tony Kelman kelman at berkeley.edu
Fri Dec 19 08:17:46 EST 2014

This is the right list, I don’t think the Java interface has its own separate bug tracker or mailing list at all.

It looks like there might have been a typo in https://projects.coin-or.org/Ipopt/changeset/2498 .

If you change “int” to “jint” on the right hand side of line 537, does that fix the problem?


From: Kirk Abbott 
Sent: Thursday, December 18, 2014 2:16 PM
To: ipopt at list.coin-or.org 
Cc: kabbott 
Subject: [Ipopt] jipotpt.cpp compilation fails - Ipopt-3.11.9


I have been trying to build from source the jipopt.dll using  Ipopt-3.11.9

I am compiling under Mingw (see below)
$ uname -a
MINGW32_NT-6.2 ABBOTTK6 1.0.18(0.48/3/2) 2012-11-21 22:34 i686 Msys

The build of the main Ipopt tree works. But when I try to compile the stuff in contrib/JavaInterface, I get the following error:

jipopt.cpp: In member function 'virtual bool Jipopt::get_list_of_nonlinear_variables(Ipopt::Index, Ipopt::Index*)':
jipopt.cpp:537:48: error: invalid conversion from 'int*' to 'jint* {aka long int*}' [-fpermissive]
             jint* tmp = new int[num_nonlin_vars];
make: *** [jipopt.lo] Error 1

Any ideas on how to correct this?

BTW, is there another forum that I should be directing these questions to?


Ipopt mailing list
Ipopt at list.coin-or.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20141219/8d4f5879/attachment.html>

More information about the Ipopt mailing list