This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Making shared objects with GCJ
- From: "Sal" <gcj at svf dot dreamhost dot com>
- To: java at gcc dot gnu dot org
- Date: Thu, 3 Jun 2004 15:38:10 -0700 (PDT)
- Subject: Re: Making shared objects with GCJ
- References: <2939.68.62.106.216.1085123228.spork@webmail.svf.dreamhost.com>
- Reply-to: gcj at svf dot dreamhost dot com
Thanks for the help... this answers my question.
I am wondering, if you (or anyone) knows of anyone that has successfully
built a windows .dll from GCJ yet? I am wondering if it has been done
before, as I am thinking about setting up an environment so that I can do
this.
If it takes making a linux/windows cross-compiling version of GCJ I am
willing to, I'm just wondering if it is even possible before I dive into
it, or if theres any info out there to get me started.
Thanks in advance,
- Sal
> Sal wrote:
>
>>I'm trying to build a shared object (.so, .dll) with GCJ. The purpose is
>>to make libraries for projects to use from any language. I understand
>>that making .dlls on windows may not work yet, so .so will be fine for me
>>for the interim (I may try to cross compile later on).
>
> You would do this by writing a connecting layer in C++ or C which
> exposes your library API as extern "C" functions. These glue functions
> would then call into your java code using CNI or JNI and the invocation
> APIs.
>
> Regards
>
> Bryce