Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!src.honeywell.com!msi.umn.edu!cs.umn.edu!kksys!edgar!mmug!p510.f22.n282.z1.mmug.edgar.mn.org!jspencer From: jspencer@p510.f22.n282.z1.mmug.edgar.mn.org (Jim Spencer) Newsgroups: comp.sys.mac.programmer Subject: MPW Object Pascal, linkers and general hassles...(help) Message-ID: <2.27C5B496@mmug.edgar.mn.org> Date: 22 Feb 91 23:37:13 GMT Sender: ufgate@mmug.edgar.mn.org (newsout1.26) Organization: FidoNet node 1:282/22.510 - SmorgasBoard, Twin Cities Lines: 23 Lewis Aj writes in a message to All LA> I've been programming the Mac under MPW Pascal (3.1) for about LA> two weeks, and have been having some success writing XCMDs for LA> Hypercard 2.0. For various resons I decided to try experimenting LA> with objects, and have run into severe problems. LA> I wrote a small XCMD that used objects, which compiled no problem, LA> but when I tried to link it, I got a set of errors which went LA> more or less as follows... LA> ### While reading file "ObjectWindow.p.o" ###Link: Error: OpCode LA> is not JSR, JMP, LEA or PEA. (Error 41) at $FFFFFE in %_XWINOBJECT While I'm not exactly sure why this is the error message you get, the problem comes from the fact that Object Pascal accesses methods via a jump table referenced from A5. In an XCMD, A5 is not yours to play with. -- Jim Spencer (jspencer@mmug.edgar.mn.org) UUCP: ...jhereg!tcnet!vware!edgar!mmug!jspencer FidoNet: 1:282/22.510 --