Article View: comp.sys.next.programmer
Article #1703Re: PB ld finding multi. defs.
From: Bill Burcham
Date: Thu, 01 Oct 1992 15:03
Date: Thu, 01 Oct 1992 15:03
58 lines
2535 bytes
2535 bytes
In article <1992Sep23.192057.21888@fnbc.com> billb@fnbc.com (Bill Burcham) writes: > How's that for cryptic. Anyhow, when I do a build from Project Builder I > sometimes get ld error like: > > ld ../obj/Hedge.o ../obj/HierPIList.o ../obj/MissingPrices.o > ../obj/MPList.o ../obj/PIList.o ../obj/Portfolio.o ../obj/Position.o -r -o > ../obj/Portfolio.o > > ld: multiple definitions of symbol .objc_class_name_PIList > ../obj/PIList.o definition of absolute .objc_class_name_PIList (value 0x0) > ../obj/Portfolio.o definition of absolute .objc_class_name_PIList (value > 0x0) > > ld: multiple definitions of symbol .objc_class_name_Hedge > ../obj/Hedge.o definition of absolute .objc_class_name_Hedge (value 0x0) > ../obj/Portfolio.o definition of absolute .objc_class_name_Hedge (value > 0x0) > > (etc, etc, etc...) > > Each of these .o files (except for MissingPrices and Portfolio) rep's a > class in a common class hierarchy (based on PIList). I touched PIList.h > before doing the preceeding (debug) build. I have seen the problem > repeatedly under PB, but never under 2.x IB gen'd Make's. > > The workaround I have been using is to delete all the .o files for this > subproj and make again. This sucks because I have to wait for all these > compiles whenever I change any file (why don't I just throw Make out and > write a shell script?!?) > > Help!!!! > -- Dave Moore @ NeXT was kind enough to provide this workaround: > From: Dave_Moore@next.com (Dave Moore) > Date: Mon, 28 Sep 92 11:09:29 -0700 > To: billb@fnbc.com (Bill Burcham) > Subject: Re: PB ld finding multi. defs. > > Bill, > This sounds like something we know about. I think if you > changed the name of either your subproject or class file > from Portfolio to something else everything will work > fine. The problem is that you are using the ld -r'd > subproject o file the second time around instead of the > class o file. Try it and let me know if it doesn't work. > > > Dave Moore > NeXT Computer, Inc. > Software Development Tools > Bill
Technical Details
Message-ID:
<1992Oct1.150303.27668@fnbc.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!usc!rpi!psinntp!psinntp!juliet!newsReferences:
<1992Sep23.192057.21888@fnbc.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!usc!rpi!psinntp!psinntp!juliet!news From: billb@fnbc.com (Bill Burcham) Subject: Re: PB ld finding multi. defs. Message-ID: <1992Oct1.150303.27668@fnbc.com> Sender: news@fnbc.com Organization: First National Bank Of Chicago, Chicago IL, USA References: <1992Sep23.192057.21888@fnbc.com> Date: Thu, 1 Oct 92 15:03:03 GMT Lines: 58