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

Kirk Abbott kabbott at newleafpower.com
Thu Dec 18 17:16:47 EST 2014


Hello,

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?

Thanks,
Kirk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20141218/509c7114/attachment.html>


More information about the Ipopt mailing list