Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!sdcsvax!ucsdhub!jack!man!nu3b2!rwhite From: rwhite@nu3b2.UUCP (Robert C. White Jr.) Newsgroups: comp.lang.c,comp.unix.questions Subject: Re: A little prob with curses. Message-ID: <784@nu3b2.UUCP> Date: Sun, 5-Jul-87 18:00:49 EDT Article-I.D.: nu3b2.784 Posted: Sun Jul 5 18:00:49 1987 Date-Received: Mon, 6-Jul-87 00:39:12 EDT References: <1032@killer.UUCP> <6050@brl-smoke.ARPA> Organization: National University, San Diego Lines: 37 Summary: Curses and Termlib. Xref: mnetor comp.lang.c:2840 comp.unix.questions:3092 In article <6050@brl-smoke.ARPA>, gwyn@brl-smoke.ARPA (Doug Gwyn ) writes: > In article <1032@killer.UUCP> robertl@killer.UUCP (Robert Lord) writes: > >... I issue the command 'cc file.c -lcurses' ... > > I don't know much about Xenix, but I suspect it's termcap-based, in > which case you need to append " -ltermlib" to your link command. > > The reason "ld" did not make the a.out executable was because there > were unsatisfied external references (as it told you). Of course an > incomplete load module goes crazy if you try to run it! Hello, I don't have the original article so I am responding here. I is important to note that curses simulates "many of the older termlib functions for compatibility reasons" What this means in real life is that it may or may not be there, as a macro or function definition. The only aproach I have found is to #includeand see what falls out the cracks in a serious lint. If this is no joy, compare the function/ argument list in the manual, a lot of things have been changed around a bit to ceep the intra-curses interface consistant. When I imported "kermit.c" to my machine I wouldn't compile correctly no matter what cosmetically neuter changes I made. I've got to go after it with hooks and prods [hack and kludge] later. If you are using a system like mine [3B2/310 SVR2.0.4+] you may find that some libraaries [malloc/signal/and some others] are/arn't being loaded because of internals. make shure that you have #included if you use the calls, if you do try it with and without -lmalloc [etc...] Robert. Disclaimer: My mind is so fragmented by random excursions into a wilderness of abstractions and incipient ideas that the practical purposes of the moment are often submerged in my consciousness and I don't know what I'm doing. [my employers certainly have no idea]