[plug] Trying to use Curses.h

David Buddrige david.buddrige at mitswa.com.au
Mon Mar 8 09:14:01 WST 1999


Thanks heaps for this Steve - will give it a go tonight!  8-)

I knew it had to be something fairly straight-forward... 8-)

regards

David.
    -----Original Message-----
    From: Steve Baker <bakes at corona.iinet.net.au>
    To: plug at linux.org.au <plug at linux.org.au>
    Date: Monday, March 08, 1999 7:10 AM
    Subject: Re: [plug] Trying to use Curses.h
    
    
    On Sun, 7 Mar 1999, David Buddrige wrote: 

    > Hi all... 
    > 
    > 
    > I'm trying to use ncurses in a program.  In order to figure it out, I am 
    > writing a test program.  However I am not able to figure it out - it 
    > keeps bringing up an error - "undefined reference to newterm"... (see my 
    > C++ below)... 
    > 
    > could anyone point me towards some sample ncurses code on the net?  or 
    > have I forgotten something silly?  BTW, it compiles ok with the g++ 
    > testcurses.c -c option, but when I do, g++ testcurses.c -o test it 
    > brings up the error message I have described - seems to be a linking 
    > problem, but not sure how to fix... 

    Try g++ testcurses.c -o test -lncurses to include the libncurses.a 
    library in the link step.  I have used this successfully with gcc, not 
    g++, but I assume the ld step is the same. 

    -- 
    Steve Baker,  aka  bakes at corona.iinet.net.au 
    Open your mind, then check out http://www.peg.apc.org/~nexus 
    No-one can tell you exactly what you have gotta be -- Jimmy Barnes 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plug.org.au/pipermail/plug/attachments/19990308/0a5829b1/attachment.html>


More information about the plug mailing list