* gcj.texi (Invocation): Corrections for Invocation API example.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115432
138bc75d-0d04-0410-961f-
82ee72b054a4
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
#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;