This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Integrating gcj and C


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]