[Ipopt-tickets] [Ipopt] #254: Problems compiling jipopt on Windows 64bit

Ipopt coin-trac at coin-or.org
Fri Jan 9 05:34:58 EST 2015


#254: Problems compiling jipopt on Windows 64bit
-----------------------+------------------------
  Reporter:  RotateMe  |      Owner:  ipopt-team
      Type:  defect    |     Status:  new
  Priority:  normal    |  Component:  Ipopt
   Version:  3.11      |   Severity:  normal
Resolution:            |   Keywords:  jipopt 64
-----------------------+------------------------

Comment (by RotateMe):

 Replying to [comment:1 stefan]:
 > I had committed a fix to jipopt.cpp in r2513 3 weeks ago and now merged
 it to stable/3.11. Is this the one you refer to? Otherwise, please be more
 specific about the "line where a jint* is initialized as an int*".

 Yes, this is exactly the line, sorry.

 > Sounds like a bug in the JNI headers to me. They should include the
 headers needed.

 Maybe I wasn't clear enough, it's GCC that doesn't know the type _int64,
 so when using GCC to compile the JNI you need to include inttypes.h and
 use a different but equivalent type.
 > I don't think that replacing the typedef for ''jint'' is a good idea.
 > If the warnings are only in code that isn't executed anyway (i.e., in a
 ''if (sizeof(jint)==sizeof(int))'' block, then better ignore these
 warnings.

 > The log doesn't tell me much.
 > Try without modifying the typedef of jint.

 I tried it both ways (only fixing the problem with _int64 and replacing
 the typedefs altogether), the error was exactly the same, which is why I
 suspect it's not the cause for this problem.

--
Ticket URL: <https://projects.coin-or.org/Ipopt/ticket/254#comment:2>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.



More information about the Ipopt-tickets mailing list