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

Stefan Vigerske stefan at math.hu-berlin.de
Fri Dec 19 08:19:49 EST 2014


Hi,

it should probably be
   jint* tmp = new jint[num_nonlin_vars];

Does that work?

Stefan

On 12/18/2014 11:16 PM, Kirk Abbott wrote:
> 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
>
>
>
>
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt
>



More information about the Ipopt mailing list