Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!wuarchive!julius.cs.uiuc.edu!apple!hercules!sparkyfs!ads.com!potomac!jtn From: jtn@potomac.ads.com (John T. Nelson) Newsgroups: comp.sys.mac.programmer Subject: And now a question about OOPs and LSC Message-ID: <9184@potomac.ads.com> Date: 22 Sep 90 18:03:16 GMT Organization: Advanced Decision Systems, Arlington VA Lines: 36 And now a question about OOPs and Lightspeed C. I have some code that builds on a superclass and each of the subclasses uses only new methods but no new instance variables. It's pretty straightforward. I have each subclass in a .h file and the methods in .c files for each of the classes. Then I compile and link and the linker tells me my methods aren't defined! Yet the methods are delcared in the class definitions and the methods most certainly do exist in the files compiled. Yes, each of the methods is preceded by the subclass name... Link::getALink(void *, KEY_TYPE zot) { } etc... and the subclasses look something like this... struct classA : primeClass { void *constructor(void); void getALink(void *, KEY_TYPE); }; yet MANY of the superclass methods come up undefined. ANyone have a clue as to what's going wrong? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ORGANIZATION: Advanced Decision Systems GEOGRAPHIC: Arlington, VA UUCP: kzin!speaker@mimsy.umd.edu INTERNET: jtn@potomac.ads.com SPOKEN: Yo... John! PHONE: (703) 243-1611 PROJECT: The Conrail Locomotive/Harpsichord Fusion Program =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=