public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libgcj/1291: error when compile a simple file include <jni.h> with g++
@ 2000-12-20 12:24 a1tv86
0 siblings, 0 replies; only message in thread
From: a1tv86 @ 2000-12-20 12:24 UTC (permalink / raw)
To: java-gnats
>Number: 1291
>Category: libgcj
>Synopsis: error when compile a simple file include <jni.h> with g++
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: tromey
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 20 12:18:44 PST 2000
>Closed-Date: Tue Jul 04 09:26:50 PDT 2000
>Last-Modified: Tue Jul 4 09:30:00 PDT 2000
>Originator: a1tv86@yahoo.com
>Release: egcs-2000-06-19 with patches & libgcj-snapshot-2000-06-20
>Organization:
>Environment:
Solaris 2.6
>Description:
Hi,
I am trying to create an simple JNI program. See the attachment.
Here is the couple compiling errors:
In file included from HelloWorld.cc:4:
/usr/local/include/jni.h:445: type specifier omitted for parameter
/usr/local/include/jni.h:446: `NewObjectArray' was not declared in this
scope
/usr/local/include/jni.h:446: ISO C++ forbids declaration of `jarray'
with no type
/usr/local/include/jni.h:446: function `int jarray (JNIEnv *,
__java_int, java::lang::Class *, java::lang::Object *)' is initialized
like a variable
/usr/local/include/jni.h:447: type specifier omitted for parameter
/usr/local/include/jni.h:448: type specifier omitted for parameter
/usr/local/include/jni.h:451: `NewBooleanArray' was not declared in
this scope
/usr/local/include/jni.h:451: ISO C++ forbids declaration of
`jbooleanArray' with no type
/usr/local/include/jni.h:451: function `int jbooleanArray (JNIEnv *,
__java_int)' is initialized like a variable
/usr/local/include/jni.h:452: `NewByteArray' was not declared in this
scope
/usr/local/include/jni.h:452: ISO C++ forbids declaration of
`jbyteArray' with no type
>How-To-Repeat:
g++ $(INCLUDE_PATH) -c HelloWorld.cc
>Fix:
>Release-Note:
>Audit-Trail:
Formerly PR libgcj/270
State-Changed-From-To: open->feedback
State-Changed-By: tromey
State-Changed-When: Fri Jun 30 16:10:27 2000
State-Changed-Why:
Thanks for the report.
I've checked in a fix. Can you try it out?
If you can't try it, please still get back to
me so I can close the PR.
Thanks.
From: tromey@sourceware.cygnus.com
To: java-gnats@sourceware.cygnus.com
Cc:
Subject: libgcj/270
Date: 30 Jun 2000 23:09:44 -0000
CVSROOT: /cvs/java
Module name: libgcj
Changes by: tromey@sourceware.cygnus.com 00/06/30 16:09:44
Modified files:
libjava : ChangeLog
libjava/include: jni.h
Log message:
* include/jni.h: Include <gcj/array.h>. Fixes PR libgcj/270.
Patches:
http://gcc.gnu.org/cgi-bin/gcc/libjava/ChangeLog.diff?cvsroot=java&r1=1.408&r2=1.409
http://gcc.gnu.org/cgi-bin/gcc/libjava/include/jni.h.diff?cvsroot=java&r1=1.12&r2=1.13
From: tromey@cygnus.com
To: a1tv86@yahoo.com, java-gnats@sourceware.cygnus.com, tromey@cygnus.com
Cc:
Subject: Re: libgcj/270
Date: 30 Jun 2000 23:10:27 -0000
Synopsis: error when compile a simple file include <jni.h> with g++
State-Changed-From-To: open->feedback
State-Changed-By: tromey
State-Changed-When: Fri Jun 30 16:10:27 2000
State-Changed-Why:
Thanks for the report.
I've checked in a fix. Can you try it out?
If you can't try it, please still get back to
me so I can close the PR.
Thanks.
http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=270&database=java
State-Changed-From-To: feedback->closed
State-Changed-By: tromey
State-Changed-When: Tue Jul 4 09:26:50 2000
State-Changed-Why:
Reported as fixed.
From: tromey@cygnus.com
To: a1tv86@yahoo.com, java-gnats@sourceware.cygnus.com, tromey@cygnus.com
Cc:
Subject: Re: libgcj/270
Date: 4 Jul 2000 16:26:50 -0000
Synopsis: error when compile a simple file include <jni.h> with g++
State-Changed-From-To: feedback->closed
State-Changed-By: tromey
State-Changed-When: Tue Jul 4 09:26:50 2000
State-Changed-Why:
Reported as fixed.
http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=270&database=java
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="HelloWorld.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="HelloWorld.cc"
I2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c3RkbGliLmg+DQoNCiNpbmNsdWRlIDxqbmku
aD4NCg0KaW50IG1haW4oaW50IGFyZ2MsIGNoYXIqIGFyZ3ZbXSkNCnsNCiAgaW50IG5FcnJvciA9
IDA7DQogIEphdmFWTUluaXRBcmdzIHNBcmdzOw0KICBKTklFbnYgKnBzRW52ID0gKEpOSUVudiAq
KSAwOw0KICBKYXZhVk0gKnBzTWFjaGluZSA9IChKYXZhVk0gKikgMDsNCg0KICBtZW1zZXQgKCZz
QXJncywgMCwgc2l6ZW9mIChKYXZhVk1Jbml0QXJncykpOw0KICBzQXJncy52ZXJzaW9uID0gSk5J
X1ZFUlNJT05fMV8yOw0KICBKTklfR2V0RGVmYXVsdEphdmFWTUluaXRBcmdzICgmc0FyZ3MpOw0K
ICANCiAgbkVycm9yID0gSk5JX0NyZWF0ZUphdmFWTSAoJnBzTWFjaGluZSwgKHZvaWQqKikmcHNF
bnYsICh2b2lkKikmc0FyZ3MpOw0KICBpZiAobkVycm9yIDwgMCkNCiAgew0KICAgIHByaW50ZiAo
ICJFcnJvcjogSk5JX0NyZWF0ZUphdmFWTSgpXG4iICk7DQogIH0gLyogaWYgKi8NCiAgZWxzZQ0K
ICB7DQoNCiAgfSAvKiBlbHNlICovDQoNCiAgcmV0dXJuIDA7DQp9IC8qIG1haW4gKi8NCg==
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-12-20 12:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-20 12:24 libgcj/1291: error when compile a simple file include <jni.h> with g++ a1tv86
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).