Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!icdoc!sot-ecs!ajl88 From: ajl88@ecs.soton.ac.uk (Lewis AJ) Newsgroups: comp.sys.mac.programmer Subject: MPW Object Pascal, linkers and general hassles...(help) Summary: HELP Message-ID: <6748@ecs.soton.ac.uk> Date: 12 Feb 91 22:15:49 GMT Sender: news@ecs.soton.ac.uk Lines: 25 I've been programming the Mac under MPW Pascal (3.1) for about two weeks, and have been having some success writing XCMDs for Hypercard 2.0. For various resons I decided to try experimenting with objects, and have run into severe problems. I wrote a small XCMD that used objects, which compiled no problem, but when I tried to link it, I got a set of errors which went more or less as follows... ### While reading file "ObjectWindow.p.o" ###Link: Error: OpCode is not JSR, JMP, LEA or PEA. (Error 41) at $FFFFFE in %_XWINOBJECT (with about ten more similar ones following. I've found that I only get these errors if the program instantiates an object (by using New()). I really haven't a clue what's wrong - I'm using the correct interfaces and library files etc, and have RTFM till I'm blue in the face. Can anybody please help? Thanks, Andy Lewis