This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: core dump


On Mon, 4 Nov 2002, Martin Aliger wrote:
> I know, you have lot of work and I hope this is correct list to ask my
> question.

This is the right place.

> #include <java/lang/Math.h>
> int main()
> {
>      jint i=java::lang::Math::round((jfloat)2.3);
>      return 0;
> }

This is the main method, so the VM isn't initialized yet.  Also, the Math
class may not be initialized.  See
http://gcc.gnu.org/onlinedocs/gcj/Invocation.html for a similar example
using the CNI invocation interface.

Jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]