bowman@reed.UUCP (Eric Bowman) (08/16/90)
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!bowmanbeard@ux5.lbl.gov (Patrick C Beard) (08/17/90)
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. ".......<dead air>.......Good day!" - Paul Harvey -
-------------------------------------------------------------------------------