Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!kgw2!dennisg From: dennisg@kgw2.bwi.WEC.COM (Dennis Glatting) Newsgroups: comp.sys.next Subject: Re: REQUEST: How to link g++ objects? (partial solution) Message-ID: <1906@kgw2.Xetron.COM> Date: 27 Mar 91 12:32:27 GMT References: <9103251248.AA08371@LL.MIT.EDU> <2363@fornax.UUCP> Sender: dennisg@kgw2.Xetron.COM Reply-To: dennisg@Xetron.COM Organization: Xetron Corporation, Cincinnati Ohio Lines: 42 In article <2363@fornax.UUCP>, miron@fornax.UUCP (Miron Cuperman) writes: |> 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 friend, you're working too hard. the problem with the NeXT cc++ is well documented. just call NeXT or send email. i have been using cc++ for two months. In fact I recently posted a game on the purdue archives that use c++ objects as a back end. it doesn't, however, use cc++ for the link phase. to fix the collect problem place the following line in your .cshrc file: limit stacksize 10000. that is all you need to do. -- ..!uunet!kgw2!dennisg | Dennis P. Glatting dennisg@Xetron.COM | X2NeXT developer | NeXT/C++/Objective-C wienie