Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!dog.ee.lbl.gov!helios.ee.lbl.gov!ux5.lbl.gov!beard From: beard@ux5.lbl.gov (Patrick C Beard) Newsgroups: comp.sys.mac.programmer Subject: Re: MPW C DA troubles Message-ID: <6528@helios.ee.lbl.gov> Date: 17 Aug 90 00:54:39 GMT References: <15340@reed.UUCP> Sender: usenet@helios.ee.lbl.gov Reply-To: beard@ux5.lbl.gov (Patrick C Beard) Organization: Berkeley Systems, Inc. Lines: 30 X-Local-Date: 16 Aug 90 17:54:39 PDT In article <15340@reed.UUCP> bowman@reed.UUCP (Eric Bowman) writes: #While trying to modify Apple's Memory DA (in MPW C 3.1), I keep getting #a linker error, stating: # #"### Link: Error: Data Initialization code is not being called. (Error 57)" # #Could anyone enlighten me as to what might be going wrong? I've modified #their C code, Rez file, and DAEntry.a, and copied their make file, so I'm #currently a little confused. # #Any help would be greatly appreciated. # #Thanks, #bobo #bowman@reed.{bitnet,UUCP,edu} #...tektronix!reed!bowman The problem is that you are declaring global variables in a stand-alone code resource. Read Tech Note #256. It explains how to get this to work. Or, stuff your globals in the device control entry field, DCtlStorage. Good luck! -- ------------------------------------------------------------------------------- - Patrick Beard, Macintosh Programmer (beard@lbl.gov) - - Berkeley Systems, Inc. "..............Good day!" - Paul Harvey - -------------------------------------------------------------------------------