Compile under Cygwin?

Hi all-

Has anyone tried to compile some of the demos that use JNI
under Cygwin under Win2K using gcc and g77?  I'm having trouble 
getting the includes right (can't get __int64 specification for
jlong in jni_md.h).  For example, in visad.paoloa.Makefile, 
I've defined a new OS type:

CYGWIN*) arch=cygwin;; \

and then defined the options as:

cygwin: required_macros
        @make \
                JAVAARCH=win32 \
                CFLAGS="$(CFLAGS) -ansi -D_GNU_SOURCE" \
                SHLD="gcc" \
                SHLDFLAGS="-shared" \
                SHFLD="$(FC)" \
                SHFLDFLAGS="-shared" \
                SYSLIBS="-lm" \
                JAVADIR="$(JAVADIR)" \
                JC="$(JC)" \
                JFLAGS="$(JFLAGS)" \
                shared_library

and linked f77 to g77, but when I try to compile I get:

/opt/java/bin/javah -jni visad.paoloa.GoesCollaboration
gcc   -c GoesCollaborationImp.c -I/opt/java/include
-I/opt/java/include/win32
In file included from /opt/java/include/jni.h:30,
                 from GoesCollaborationImp.c:4:
/opt/java/include/win32/jni_md.h:19: parse error before `jlong'
/opt/java/include/win32/jni_md.h:19: warning: data definition has no
type or storage class
......

If anyone has been successful in this environment, 
let me know.

Don
*************************************************************
Don Murray                               UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx                        P.O. Box 3000
(303) 497-8628                              Boulder, CO 80307
http://www.unidata.ucar.edu/staff/donm
*************************************************************


  • 2001 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: