aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/gcj.texi
diff options
context:
space:
mode:
authorBryce McKinlay <bryce@gcc.gnu.org>2006-07-14 04:54:43 +0100
committerBryce McKinlay <bryce@gcc.gnu.org>2006-07-14 04:54:43 +0100
commita7929aa4bd7517e8dc4d1eaa7b14d47670da7e0c (patch)
tree9c4465f06c244e9676f8f10b7321de2b4cd2c297 /gcc/java/gcj.texi
parentb369a1989c4227a69dc551ac7226ee3965ffe593 (diff)
downloadgcc-a7929aa4bd7517e8dc4d1eaa7b14d47670da7e0c.zip
gcc-a7929aa4bd7517e8dc4d1eaa7b14d47670da7e0c.tar.gz
gcc-a7929aa4bd7517e8dc4d1eaa7b14d47670da7e0c.tar.bz2
gcj.texi (Invocation): Corrections for Invocation API example.
2006-07-12 Bryce McKinlay <mckinlay@redhat.com> * gcj.texi (Invocation): Corrections for Invocation API example. From-SVN: r115432
Diffstat (limited to 'gcc/java/gcj.texi')
-rw-r--r--gcc/java/gcj.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/gcj.texi b/gcc/java/gcj.texi
index 000a712..01c02dc 100644
--- a/gcc/java/gcj.texi
+++ b/gcc/java/gcj.texi
@@ -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;