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


Thanks, Tom - I've made some progress, and my testbed works 
when linked with gcj, but I can't seem to get it linking 
with ld.

>From looking at gcj -v ..., it looks like I should be 
putting

PREFIX=/usr/lib/crt1.o /usr/lib/crti.o 
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/crtbegin.o
SUFFIX=/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/crtend.o 
/usr/lib/crtn.o

and linking with
 $(LD) -o testbed $(PREFIX) <my .objs> -lgcj $(SUFFIX)

But this doesn't produce a valid executable.  If I just 
link with ld and no prefix/suffix, I get 

ld: warning: cannot find entry symbol _start; defaulting to 
0804929c

Any clues ?


-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers


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