From: Bryce McKinlay Date: Fri, 14 Jul 2006 03:54:43 +0000 (+0100) Subject: gcj.texi (Invocation): Corrections for Invocation API example. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7929aa4bd7517e8dc4d1eaa7b14d47670da7e0c;p=gcc.git gcj.texi (Invocation): Corrections for Invocation API example. 2006-07-12 Bryce McKinlay * gcj.texi (Invocation): Corrections for Invocation API example. From-SVN: r115432 --- diff --git a/gcc/java/gcj.texi b/gcc/java/gcj.texi index 000a7120733..01c02dc0dbd 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 #include -int main(int argc, char *argv) +int main(int argc, char *argv[]) @{ using namespace java::lang;