gcj.texi (Invocation): Corrections for Invocation API example.
authorBryce McKinlay <bryce@gcc.gnu.org>
Fri, 14 Jul 2006 03:54:43 +0000 (04:54 +0100)
committerBryce McKinlay <bryce@gcc.gnu.org>
Fri, 14 Jul 2006 03:54:43 +0000 (04:54 +0100)
2006-07-12  Bryce McKinlay  <mckinlay@redhat.com>

        * gcj.texi (Invocation): Corrections for Invocation API example.

From-SVN: r115432

gcc/java/gcj.texi

index 000a712073387271c24b86c8ec836034fcb86089..01c02dc0dbd34060fc9da81aa08c6381484dd3ee 100644 (file)
@@ -2507,7 +2507,7 @@ is detached from the runtime once it has finished making Java calls. Everything
 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 @@ The example can be compiled with @command{c++ test.cc -lgcj}.
 #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;