<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type><TITLE>Re: [plug] Trying to use Curses.h</TITLE><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<META content='"MSHTML 4.72.3110.7"' name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#000000 size=2>Thanks heaps for this Steve - will give it a go
tonight! 8-)</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT> </DIV>
<DIV><FONT size=2>I knew it had to be something fairly straight-forward...
8-)</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>regards</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>David.</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: 5px">
<DIV><FONT face=Arial size=2><B>-----Original Message-----</B><BR><B>From:
</B>Steve Baker <<A
href="mailto:bakes@corona.iinet.net.au">bakes@corona.iinet.net.au</A>><BR><B>To:
</B><A href="mailto:plug@linux.org.au">plug@linux.org.au</A> <<A
href="mailto:plug@linux.org.au">plug@linux.org.au</A>><BR><B>Date:
</B>Monday, March 08, 1999 7:10 AM<BR><B>Subject: </B>Re: [plug] Trying to
use Curses.h<BR><BR></DIV></FONT>
<P><FONT size=2>On Sun, 7 Mar 1999, David Buddrige wrote:</FONT> </P>
<P><FONT size=2>> Hi all...</FONT> <BR><FONT size=2>> </FONT><BR><FONT
size=2>> </FONT><BR><FONT size=2>> I'm trying to use ncurses in a
program. In order to figure it out, I am</FONT> <BR><FONT size=2>>
writing a test program. However I am not able to figure it out -
it</FONT> <BR><FONT size=2>> keeps bringing up an error - "undefined
reference to newterm"... (see my</FONT> <BR><FONT size=2>> C++
below)...</FONT> <BR><FONT size=2>> </FONT><BR><FONT size=2>> could
anyone point me towards some sample ncurses code on the net? or</FONT>
<BR><FONT size=2>> have I forgotten something silly? BTW, it
compiles ok with the g++</FONT> <BR><FONT size=2>> testcurses.c -c
option, but when I do, g++ testcurses.c -o test it</FONT> <BR><FONT
size=2>> brings up the error message I have described - seems to be a
linking</FONT> <BR><FONT size=2>> problem, but not sure how to
fix...</FONT> </P>
<P><FONT size=2>Try g++ testcurses.c -o test -lncurses to include the
libncurses.a </FONT><BR><FONT size=2>library in the link step. I have
used this successfully with gcc, not </FONT><BR><FONT size=2>g++, but I
assume the ld step is the same.</FONT> </P>
<P><FONT size=2>--</FONT> <BR><FONT size=2>Steve Baker, aka
bakes@corona.iinet.net.au</FONT> <BR><FONT size=2>Open your mind, then check
out <A href="http://www.peg.apc.org/~nexus"
target=_blank>http://www.peg.apc.org/~nexus</A></FONT> <BR><FONT
size=2>No-one can tell you exactly what you have gotta be -- Jimmy
Barnes</FONT> </P></BLOCKQUOTE></BODY></HTML>