Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!mit-eddie!uw-beaver!ubc-cs!fornax!miron From: miron@fornax.UUCP (Miron Cuperman) Newsgroups: comp.sys.next Subject: REQUEST: How to link g++ objects? (and a fix) Keywords: g++ Message-ID: <2354@fornax.UUCP> Date: 24 Mar 91 00:35:15 GMT Organization: School of Computing Science, SFU, Burnaby, B.C. Canada Lines: 16 I am trying to compile a C++ product on the NeXT. I compiled g++ and used it to generate object-code files. Now when I try to link, it looks for the file 'ld++'. If I link this to gcc-ld, I get 'load failed' and it aborts. If I run /bin/ld, I get an undefined symbol type 0x16 ___CTOR_LIST__. If I try to build ld++ it doesn't find "a.out.h". BTW: g++ and cc++ dump core when given a '+' option (eg. '+e0'). I traced this to line 999 of gcc.c. There is a missing increment operation. It should read: >>> else if (argv[i][0] == '+') >>> n_switches++; Miron Cuperman