This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Integrating gcj and C
- From: Tom Tromey <tromey at redhat dot com>
- To: "Robin Garner" <robin dot garner at iname dot com>
- Cc: java at gcc dot gnu dot org
- Date: 07 Jul 2003 11:43:51 -0600
- Subject: Re: Integrating gcj and C
- References: <20030706080848.44774.qmail@iname.com>
- Reply-to: tromey at redhat dot com
>>>>> "Robin" == Robin Garner <robin.garner@iname.com> writes:
Robin> Thanks, Tom - I've made some progress, and my testbed works
Robin> when linked with gcj, but I can't seem to get it linking
Robin> with ld.
Robin> and linking with
Robin> $(LD) -o testbed $(PREFIX) <my .objs> -lgcj $(SUFFIX)
I'd recommend still using "gcj" (or gcc) to link. Using ld directly
is more difficult since you need to know about all the libraries,
including libc, etc. Will this not work for you? Just omit the
"--main", since you have your own main already.
Tom