[comp.unix.xenix] Trouble with Curses and/or Xenix v2.2.3

curci@stat.uucp (Ray Curci (scri)) (03/22/89)

I have been writing a program that uses curses with the ps2 286 v2.2.3
xenix.  By default CC uses the small model which worked fine until
approximately when the program grew beyond 64K in size.  Now, even when
I compile using large model (-Ml), the program core dumps when it
executes the initscr() function (the first function inside main()).
As a test case, the program compiles and runs on SUN OS 3.5, 4.0, 
Ultrix v2.2, and even under antique IBM XENIX v1.0.  If I take the small
model executable from XENIX v1.0 and try to run it under SCO Xenix it
gives a "Program too big" under /bin/sh, and "Not enough core" under
/bin/csh.  When I delete enough code to bring the SIZE below 64K, it
seems to always compile and execute Okay.  I installed TERMCAP as the
default and am including #include <curses> and linking with
-lcurses -ltermcap and also have tried -ltcap -ltermcap.
Any pointers would be greatly appreciated.

Ray Curci
curci@stat.fsu.edu