[Ipopt-tickets] [Ipopt] #241: Compilation error building Javainterface
Ipopt
coin-trac at coin-or.org
Fri Aug 1 02:56:53 EDT 2014
#241: Compilation error building Javainterface
--------------------+------------------------
Reporter: etolson | Owner: ipopt-team
Type: defect | Status: new
Priority: normal | Component: Ipopt
Version: 3.11 | Severity: normal
Keywords: |
--------------------+------------------------
I'm still trying to build a Win64 jipopt.dll. I've got Ipopt building
successfully now, and am now getting a compliation error for Jipopt.cpp
(pasted below) - invalid conversion from int* to jint*.
Anyone know what's going on here?
{{{
g++ -O3 -pipe -DNDEBUG -Wparentheses -Wreturn-type -Wcast-qual -Wall
-Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-
long-long -DIPOPT_BUILD -I/c/Ipopt_/Ipopt/trunk/build/include/coin
"-I/c/Progra~1/Java/jdk1.7.0_40/include"
"-I/c/Progra~1/Java/jdk1.7.0_40/include/win32" -I. -c jipopt.cpp -o
jipopt.o
jipopt.cpp: In member function 'virtual bool
Jipopt::eval_jac_g(Ipopt::Index, const Number*, bool, Ipopt::Index,
Ipopt::Index, Ipopt::Index*, Ipopt::Index*, Ipopt::Number*)':
jipopt.cpp:343:54: error: invalid conversion from 'Ipopt::Index* {aka
int*}' to 'jint* {aka long int*}' [-fpermissive]
env->GetIntArrayRegion(iRowj, 0, nele_jac, iRow);
^
}}}
--
Ticket URL: <https://projects.coin-or.org/Ipopt/ticket/241>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.
More information about the Ipopt-tickets
mailing list