[comp.sys.encore] Bug with mksubscript,getsubscript.

ajay@sunybcs.uucp (Ajay Shekhawat) (03/09/88)

Hi ,
	I don't know if any of you have come across this bug , but if you
have , and solved (killed ? :-) it , please send me the solution.
	Well , when I was using mksubscript() and getsubscript(), I started 
getting vague linking errors ; something about _spinlock and _spinunlock
being undefined. The problem was , I _was_ not using LOCKs anywhere !
	Well , there is a way to get rid of the error : just reference LOCKs
somewhere. In fact , I have a dummy routine which I attach to the end of my
program , which does nothing , but is something like this :

/* Taken from some other application  :-)	*/

	dummy(x,lok)
	     LOCK *lok;
	     int x;
	     
	{
	  return (1);
	}

This kluge seems to work . But has anyone encountered/solved/killed this bug ?
(I mean , in a better way than above.)


Ajay..


Ajay Shekhawat       <Deptt. of CS , SUNY @ Buffalo , Buffalo , NY 14260 >
    ajay@cs.buffalo.edu || ajay@sunybcs.BITNET || ajay@sunybcs.UUCP   
-------------------------- Replies By Email Welcome ---------------------------