Path: utzoo!attcan!uunet!midway!ncar!elroy.jpl.nasa.gov!usc!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!mmwst1 From: mmwst1@unix.cis.pitt.edu (Michael M Wagner) Newsgroups: comp.sys.mac.hardware Subject: problem creating xcmd that uses ANSI library Keywords: xcmd Message-ID: <51157@unix.cis.pitt.edu> Date: 20 Oct 90 15:27:19 GMT Organization: Univ. of Pittsburgh, Computing & Information Services Lines: 25 The problem: THINK C will not build a code resource IF the ANSI library is part of it. The THINK C manual says that you must recompile libraries and build them as "anything but an application" as a trick to change the register used for global variable access from A5 to A4. [see page 87 of the TC man] However, THINK C won't build the ANSI library as a resource or DA. During the build I get the error "initialization to an address is illegal in a non-application". This error occurs during compilation of command.c at line: /* ring around OK button */ (Handle) drawRing, { 172, 111, 200, 179 }, userItem+itemDisable, Any ideas? I am using THINK C 4.0.