[comp.sys.mac.hypercard] problem creating XCMD that uses ANSI library

mmwst1@unix.cis.pitt.edu (Michael M Wagner) (10/20/90)

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.