This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: jni,egcs1.1.2 compiling problem


On Wed, 21 Apr 1999, John McNally wrote:

> I am trying to call a native method within Java using the jni examples
> from Mumit Khan's website.  I'm not very knowledgable about C, so I'm
> hoping I'm making a rather easy to see error.  But possibly it is
> something more subtle and my reporting of the error may help others.

My examples were done with JDK 1.1.7A, and have not looked at others.
Sun keeps on putting MSVC-specific stuff in these headers, which is
very annoying.

> Using win95, egcs1.1.2-mingw32, jdk1.1.5 I get the following error. 
> 
> A:\>gcc -c -DBUILDING_DLL=1 -I. -Ic:/Languages/Java/jdk1.1.5/include
> -Ic:/Langua
> ges/Java/jdk1.1.5/include/win32 -o dllinit.o dllinit.c
> In file included from c:\Languages\Java\jdk1.1.5\include\typedefs.h:26,
>                  from c:\Languages\Java\jdk1.1.5\include\oobj.h:33,
>                  from c:\Languages\Java\jdk1.1.5\include\native.h:34,
>                  from GyroIn.h:2,
>                  from dllinit.c:35:
> c:\Languages\Java\jdk1.1.5\include\win32\typedefs_md.h:67: `#' operator
> is not f
> ollowed by a macro argument name
> c:\Languages\Java\jdk1.1.5\include\win32\typedefs_md.h:67: `#' operator
> is not f
> ollowed by a macro argument name

GCC obviously does not like the line 67 of typedefs_md.h file, much like
it doesn't like __int64 data type and so on.

I'll download JDK 1.1.8 and provide a patch for the headers as I've done
for 1.1.7A. I however have no intention of looking at 1.1.5.

Thanks for the reporting the problem.

Regards,
Mumit



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com