This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Need your help about GCJ
- From: Ranjit Mathew <rmathew at gmail dot com>
- To: sundy <wench at airwap dot com dot cn>
- Cc: java at gcc dot gnu dot org
- Date: Fri, 17 Jun 2005 19:45:23 +0530
- Subject: Re: Need your help about GCJ
- References: <1118922206.7128.1.camel@localhost.localdomain>
sundy wrote:
> Dear,
> Are u all right? I sorry to trouble you. I have a code writen by java.
> Now, i need to compile it into share object used in Linux (My system is
> Redhat 9.0).but i don't know how to do it. Need your help hurryly. Thank
> you.
Read the GCC manuals:
http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html
It can be as simple as:
gcj -fPIC -shared Foo.java Bar.java -o snafu.so
See also "How to BC compile with GCJ" (needs GCJ 4.0.0 or better):
http://gcc.gnu.org/wiki/How%20to%20BC%20compile%20with%20GCJ
HTH,
Ranjit.
--
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.hostingzero.com/