Path: utzoo!utgpu!water!watmath!clyde!att-cb!att-ih!pacbell!ames!sunybcs!ajay From: ajay@sunybcs.uucp (Ajay Shekhawat) Newsgroups: comp.sys.encore Subject: Bug with mksubscript,getsubscript. Message-ID: <9131@sunybcs.UUCP> Date: 8 Mar 88 16:57:18 GMT Sender: nobody@sunybcs.UUCP Reply-To: ajay@sunybcs.UUCP (Ajay Shekhawat) Organization: SUNY/Buffalo Computer Science Lines: 31 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 ajay@cs.buffalo.edu || ajay@sunybcs.BITNET || ajay@sunybcs.UUCP -------------------------- Replies By Email Welcome ---------------------------