Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!fornax!miron From: miron@fornax.UUCP (Miron Cuperman) Newsgroups: comp.sys.next Subject: Re: REQUEST: How to link g++ objects? (partial solution) Message-ID: <2363@fornax.UUCP> Date: 26 Mar 91 10:31:24 GMT References: <9103251248.AA08371@LL.MIT.EDU> Distribution: world Organization: School of Computing Science, SFU, Burnaby, B.C. Canada Lines: 22 I think that a reply to my original post was lost. Please send direct email too. I now managed to get the thing working. I use collect2 from the g++ distribution with NeXT patches applied (available from various archives). The collect2 program calls /bin/ld. I added the flag -DFASCIST_ASSEMBLER to the g++ makefile so that __CTOR_LIST and __DTOR_LIST are not generated. (/bin/ld doesn't handle the symbol type). I use the system supplied libraries. Now I have to find a way to make gdb3.6 run on the NeXT, since the supplied gdb dumps core on the debugging info generated by g++1.37.1. I have yet to find how to duplicate the functionality of ptrace. I suppose I have to get the sources from NeXT. After all they are under the GPL license. ( BTW, the original NeXT 'collect' dumps core on my files. The original cc++ dumps core too with the '-g' flag. This is why I am messing around with this. :( ) Miron Cuperman