Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!spool.mu.edu!mips!apple!ksand@apple.com From: ksand@apple.com (Kent Sandvik) Newsgroups: comp.sys.mac.programmer Subject: Re: MPW C++ dump/load, once again Message-ID: <13814@goofy.Apple.COM> Date: 1 Jun 91 00:03:46 GMT References: <16448@reed.UUCP> Sender: usenet@Apple.COM Organization: Apple, DTS Platforms Group Lines: 32 In article <16448@reed.UUCP>, bowman@reed.UUCP (Eric Bowman) writes: > > Every few months or so I waste a day trying to get the !@#$! dump and load > C++ options to work, but I can't seem to make any progress. Was this every > resolved? > > OK: I'm running > > MPW Shell v. 3.2b8 (system 6.0.5, Mac II) > MPW CFront v. 3.1 > MPW C v. 3.2b1 > Link v. 3.1 > > All destructors are declared virtual; most classes don't define any destructor, > those that do are derived from PtrObject. > Everything compiles fine; Link returns the following error: > > ### While reading file ":SymObj:TApplication.cp.o" > ### Link: Error: Bad object file: (Error 89) inconsistent declaration of a file > object > ### Link: Errors prevented normal completion. Are you using MPW 3.2 libraries, or MPW 3.1 ones? It usually makes sense not to mix and match different releases, if there is not a need (like one needs the MPW 3.2 C compiler for the load/dump feature). Another typical load/dump problem is that the base class is not defined as public in the inherited classes, which makes it hard to find information for load/dump, but I don't know if this is your problem. Kent Sandvik