Making shared objects with GCJ

Sal gcj@svf.dreamhost.com
Fri May 21 10:58:00 GMT 2004


Hi,
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).
I'm wondering is this currently possible? I know GCJ can generate .so
files, however the exported symbols are mangled, and you need CNI, or some
library to interoperate with them properly. I'm wondering if it would be
possible to make a .so with 'friendly' exported symbols that can easily be
used in any compiler that can load symbols from a .so.
I had some ugly hacks in mind to get this to work, but I was hoping maybe
there was an easy way before I tried any of them. The purpose of all this
is to make some shared libraries that GPL projects can dynamically link to
regardless of language. I normally would do these libraries in C/ C++ but
would *really* prefer to use Java if at all possible.
Thanks in advance for any help,
- Sal


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /