This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Article on GCJ
- From: Anthony Green <green at redhat dot com>
- To: Weiqi Gao <weiqigao at networkusa dot net>
- Cc: java at gcc dot gnu dot org
- Date: 21 Jan 2003 17:41:48 -0800
- Subject: Re: Article on GCJ
- References: <1043121833.2662.15.camel@gao-2001>
On Mon, 2003-01-20 at 20:03, Weiqi Gao wrote:
> Please if you have a few munites can you take a look at the article?
> And let me know if the information therein is still valid, correct,
> up-to-date and useful.
This is a good introduction to gcj. Perhaps we should put a link to it
or copy it into the FSF's gcj page.
The only nit I caught is that it's always best to recommend using "gcj"
to link any application using libgcj. Your CNI invocation example uses
g++. The reason you should use gcj is that it knows to bring in target
specific libraries required by libgcj (like winsock on Windows). I
believe you can just replace "g++" with "gcj" and your example will
still work. Gcj should know enough to invoke the C and C++ compilers
when required (although -D might not work, because gcj overloads that
option).
AG