* [doc, java] Fix Invocation API example in gcj.texi
@ 2006-07-13 4:01 Bryce McKinlay
0 siblings, 0 replies; only message in thread
From: Bryce McKinlay @ 2006-07-13 4:01 UTC (permalink / raw)
To: Java Patches, GCC Patches
[-- Attachment #1: Type: text/plain, Size: 30 bytes --]
I'm checking this in.
Bryce
[-- Attachment #2: java-invocation-api-doc.patch --]
[-- Type: text/x-patch, Size: 736 bytes --]
2006-07-12 Bryce McKinlay <mckinlay@redhat.com>
* gcj.texi (Invocation): Corrections for Invocation API example.
Index: gcj.texi
===================================================================
--- gcj.texi (revision 115370)
+++ gcj.texi (working copy)
@@ -2507,7 +2507,7 @@
is wrapped with a try/catch block to provide a default handler for any uncaught
exceptions.
-The example can be compiled with @command{c++ test.cc -lgcj}.
+The example can be compiled with @command{c++ -c test.cc; gcj test.o}.
@example
// test.cc
@@ -2516,7 +2516,7 @@
#include <java/io/PrintStream.h>
#include <java/lang/Throwable.h>
-int main(int argc, char *argv)
+int main(int argc, char *argv[])
@{
using namespace java::lang;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-07-13 4:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-13 4:01 [doc, java] Fix Invocation API example in gcj.texi Bryce McKinlay
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).