Path: utzoo!attcan!uunet!ns-mx!iowasp.physics.uiowa.edu!maverick.ksu.ksu.edu!rutgers!att!emory!ogicse!zephyr.ens.tek.com!gvgpsa!treehouse!andyp From: andyp@treehouse.UUCP (Andy Peterman) Newsgroups: comp.sys.mac.programmer Subject: Re: MPW 3.1 and stand-alone code Message-ID: <632@treehouse.UUCP> Date: 8 Nov 90 07:46:39 GMT References: Organization: The Tree House Lines: 17 In article ml10+@andrew.cmu.edu (Michael A. Libes) writes: >The problem comes at link time. If I include the Runtime.o library I get: > "Data intialization not called..." >If I remove that library I get: > "No data intialization routine..." > >What is the correct way to link this code resource? Don't use globals. The data initialization routine is used for initializing globals (at least to zero). If you're using strings, use the -b or -b2 option to put these strings within the code. Check out Tech Note 256 for a good explanation of writing stand-alone code. -- Andy Peterman | Opinions expressed treehouse!andyp@gvgpsa.gvg.tek.com | are definitely those of (916) 273-4569 | my employer!