🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #39

G++ and curses.h

#39
From: David Charlap
Date: Wed, 08 Apr 1992 18:46
17 lines
1208 bytes
I need to link the curses screen i/o package with g++ code.  So far,
the linker refuses.  I've been using the command line as specified in
the curses man page for cc:  "g++ test.C -lcurses -ltermcap".  This
fails in the link stage.

gcc works fine with those options on C code.  I found a curses.h in
the g++ include directory.  Is there a gnu-curses I must link with?
If so, what are the library names I need.

For the time being, I'm getting minimum functionality by using ioctl()
calls and termio.h.  But this doesn't offer anywhere near the
functionality I'll soon be requiring.
-- 
David Charlap                   Q:"Where do these stairs go?"
dic5340@hertz.njit.edu          A:"They go up"
----------------------------
Hi! I am a .signature virus. Copy me into your .signature to join in!
Technical Details
Message-ID: <1992Apr8.184606.21200@njitgw.njit.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!rutgers!njitgw.njit.edu!hertz.njit.edu!dic5340
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: gnu.g++.help
Subject: G++ and curses.h
Message-ID: <1992Apr8.184606.21200@njitgw.njit.edu>
Date: 8 Apr 92 18:46:06 GMT
Sender: news@njit.edu
Organization: New Jersey Institute of Technology, Newark, N.J.
Lines: 17
Nntp-Posting-Host: hertz.njit.edu