From: WESTER AT ilt DOT fhg DOT de ("Dr. rer. nat. R. Wester") Subject: Problems with Java include files 1 Apr 1997 10:27:30 -0800 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <9704011647.AA26465.cygnus.gnu-win32@ee2s01.ilt.fhg.de> Reply-To: WESTER AT ilt DOT fhg DOT de Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-ENV: (mailgw1.fhg.de) WESTER AT ilt DOT fhg DOT de -> gnu-win32 AT cygnus DOT com DOT VIA-SMTP Comments: Authenticated sender is Original-To: gnu-win32 AT cygnus DOT com X-Mailer: Pegasus Mail for Win32 (v2.42a) Original-Sender: owner-gnu-win32 AT cygnus DOT com Hi, I would like to call C/C++ functions via the Java Native Interface. I tried to build the dll which is necessary for that with gnu-win32. But unfortunately gnu-win32 seems not to like the Java include files (Sun's Java JDK 1.1) . In the include file /java/include/ win32/typedefs_md.h the statement: #define INT_OP(x,op,y) (((#@op=='/')||(#@op=='%')) ? \ ( (((x)==0x80000000)&&((y)==-1)) ? \ ((x) op 1) : \ ((x) op (y))) : \ ((x) op (y))) produces the error message: typedefs_md.h:67: '#' operator is not followed by a macro argument (I believe to understand why this does not work but curiously it works with MVC++) When changing #@op to @op there is no such message any more but then the lines 37 and 38: typedef __int64 int64_t; typedef unsigned __int64 uint64_t; lead to the error messages typedefs_md.h:37: syntax error befor ';' typedefs_md.h:38: syntax error befor ';' At this point __int64 has not been defined, but should have been defined. I already build a dll for JNI invocation with MVC++ and this worked but I would prefer to do it with gnu-win32. I would be very appreciative for any help on that problem. Rolf Wester wester AT ilt DOT fhg DOT de - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".