This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/14212] Can't mix compiled and interpreted code with 3.3.3
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Feb 2004 18:05:17 -0000
- Subject: [Bug java/14212] Can't mix compiled and interpreted code with 3.3.3
- References: <20040219155545.14212.stiles@siliconlogic.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From tromey at gcc dot gnu dot org 2004-02-24 18:05 -------
The rule is, the dependencies of compiled code must also be compiled.
Basically gcj uses a C/C++ -like linkage model for Java.
So if you depend directly on Xerces, you must compile it.
This should be easy, eg you could compile the whole .jar to a .so,
or just use the XML stuff that comes with libgcj (by adding the
appropriate -l options to the link).
In the future we'll have an ABI that will lift this restriction and
let you use an arbitrary mix of compiled and interpreted code.
You'd probably still want to compile something like an XML parser, IMO.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14212