Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: $Revision: 1.6.2.16 $; site inmet.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!cca!inmet!bhyde From: bhyde@inmet.UUCP Newsgroups: net.micro.mac Subject: Re: Megamax C problems Message-ID: <26700049@inmet.UUCP> Date: Fri, 31-Jan-86 09:41:00 EST Article-I.D.: inmet.26700049 Posted: Fri Jan 31 09:41:00 1986 Date-Received: Mon, 3-Feb-86 05:40:37 EST References: <97200002@siemens.UUCP> Lines: 16 Nf-ID: #R:siemens:97200002:inmet:26700049:000:568 Nf-From: inmet!bhyde Jan 31 09:41:00 1986 I occationally get undefined local symbols in my Megamax links. The easy way to make this bug appear is: static foo(); ProcPtr actions[] = { foo, foo, foo}; /* Table of subp. pointers */ foo() { ... } This will give rise to three (wierd) undef symbols at the end of the link, all named "foo". Removing the static declaration will fixs the problem. I have seen the undefined local symbol errors too, i.e. names like $12, $324. I diagnosised the problem using the disassembler. I don't recall what construct caused the problem. -ben hyde, cambridge.