You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Rodrigo Kumpera <ku...@gmail.com> on 2005/10/20 00:42:44 UTC

Small problems building under cygwin

I've found a small issue while building under cygwin.

I'm using j2sdk 1.4 and gcc 3.4.4 (cygwin). The problems are when
building the jni stuff.

First it included on gcc find patch "j2sdk\include\cygwin", but it
should be "j2sdk\include\win32".

Second is when building the included file "jni_md.h" breaks everything
as it defines jlong as "__int64" and not "long long".

Fixing both is pretty easy, either edit config/config_opts_always.gcc
or rename the directory from win32 to cygwin.

The second you can either edit jni_md.h and change "__int64" to "long
long" or include a define directive, or something like this, in
config/config_opts_always.gcc.


I'm not sure what would be the best way to fix this on build.sh, as
the first issue is related to build enviroment and the second about
incompatible compilers ("__int64" works on MSVC and ICC but not gcc)

[]s
Rodrigo