Heh, kinda like DEFINE LNK$LIBRARY_1 VAXCCURSE. It doesn't seem to care if I specify -lcurses or -lncurses. Just kinda sits there looking hung under X, but from a term window it's more promising :-) Thanks much, Nick (and thanks for taking a shot at it, Kevin). I've got a religious question now. Can you suggest a modern, less-icky-than-curses, C friendly library? Displaying in either X or console would be cool but not required. I just need a "window" that I can stuff text into, a subwindow, cursor around, and reverse video would be handy (wsetattr seems to have fallen out of favor). I'm trying to resurrect and enhance a homegrown tool from the dark ages. Steve P.S. I wanna see RMS meet the guy who did the /etc/termcap legalese :-) :-) :-) # COPYRIGHTS AND OTHER DELUSIONS # # The BSD ancestor of this file had a standard Regents of the University of # California copyright with dates from 1980 to 1993. # # Some information has been merged in from a terminfo file SCO distributes. # It has an obnoxious boilerplate copyright which I'm ignoring because they # took so much of the content from the ancestral BSD versions of this file # and didn't attribute it, thereby violating the BSD Regents' copyright. # # Not that anyone should care. However many valid functions copyrights may # serve, putting one on a termcap/terminfo file with hundreds of anonymous # contributors makes about as much sense as copyrighting a wall-full of # graffiti -- it's legally dubious, ethically bogus, and patently ridiculous. # # This file deliberately has no copyright. It belongs to no one and everyone. # If you claim you own it, you will merely succeed in looking like a fool. # Use it as you like. Use it at your own risk. Copy and redistribute freely. # There are no guarantees anywhere. Svaha! # Nick Estes wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Your link errors might just vanish if you try linking it with the curses > library. > > cc bedit.c -lcurses (or perhaps -lncurses depending on your system) > > --Nick > > On Sat, 4 May 2002, foodog wrote: > > > I know this belongs on the developers list, but I'm not susbscribed to > > it, rarely code anymore, and beseach thee to gimme a break. > > > > I'm trying to port a program written in VAX C circa 1988 that uses > > Curses library calls. When I try to build it I get a bunch of errors, > > specifically: > > > > [steve@gemini steve]$ cc bedit.c > > /tmp/ccNUfExw.o: In function `main': > > /tmp/ccNUfExw.o(.text+0x14e): undefined reference to `initscr' > > /tmp/ccNUfExw.o(.text+0x172): undefined reference to `newwin' > > /tmp/ccNUfExw.o(.text+0x1d2): undefined reference to `endwin' > > /tmp/ccNUfExw.o: In function `edit_buffer': > > /tmp/ccNUfExw.o(.text+0x369): undefined reference to `wprintw' > > /tmp/ccNUfExw.o(.text+0x39d): undefined reference to `wmove' > > /tmp/ccNUfExw.o: In function `first_screen': > > /tmp/ccNUfExw.o(.text+0x414): undefined reference to `wrefresh' > > /tmp/ccNUfExw.o: In function `key_not_supported': > > /tmp/ccNUfExw.o(.text+0x5b4): undefined reference to `werase' > > ... etc. etc. etc. > > collect2: ld returned 1 exit status > > > > I'm including stdio.h and curses.h. The functions are listed in > > curses.h so I'm hoping there's some compiler switch I'm missing out on. > > Also note: > > $ rpm -qa | grep curses > > ncurses-5.2-12 > > ncurses-devel-5.2-12 > > > > Anybody got a hint? TIA, > > Steve > > ________________________________________________ > > See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post to the list quickly and you use Netscape to write mail. > >