TEXI patch: CNI Invocation example
T.J. Mather
tjmather@tjmather.com
Sat Jun 29 12:14:00 GMT 2002
This patch is needed for the example to compile correctly using the GCC
3.1 release.
Thanks,
TJ
2002-06-29 T.J. Mather <tjmather@maxmind.com>
* gcj.texi: Fixed gcj invocation example so that it compiles.
-------------- next part --------------
? gcj.texi.patch
Index: gcj.texi
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/java/gcj.texi,v
retrieving revision 1.31
diff -c -3 -p -r1.31 gcj.texi
*** gcj.texi 4 Jun 2002 22:00:42 -0000 1.31
--- gcj.texi 29 Jun 2002 18:40:19 -0000
*************** int main(int argc, char *argv)
*** 1901,1907 ****
JvAttachCurrentThread(NULL, NULL);
String *message = JvNewStringLatin1("Hello from C++");
! JvInitClass(&System.class$);
System::out->println(message);
JvDetachCurrentThread();
--- 1901,1907 ----
JvAttachCurrentThread(NULL, NULL);
String *message = JvNewStringLatin1("Hello from C++");
! JvInitClass(&System::class$);
System::out->println(message);
JvDetachCurrentThread();
More information about the Gcc-patches
mailing list