🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3504

HELP: Curses on SunOS...

#3504
From: Charles Ofria
Date: Wed, 21 Jun 1995 00:00
39 lines
2336 bytes
Greetings,

	I've been working on a program with a curses interface for quite
some time now, and it is working perfectly on the Alpha and HP machines
which I primarily use.  Recently, I've tried to port it to the SunOS, and
am having a great deal of trouble with the curses portion of the code
(the rest of it is running perfectly when I turn the user interface off).
Anyway, the machines have gcc version 2.6.3 on them.  The error codes are:

-------------------------------------------------------------------------
view.cc: In method `cView::cView(cPopulation *, int)':
view.cc:18: warning: implicit declaration of function `int signal(...)'
view.cc:18: `SIGINT' undeclared (first use this function)
view.cc:18: (Each undeclared identifier is reported only once
view.cc:18: for each function it appears in.)
view.cc:23: warning: implicit declaration of function `int stty(...)'
view.cc:27: warning: implicit declaration of function `int keypad(...)'
view.cc:28: warning: implicit declaration of function `int nodelay(...)'
view.cc: In function `void EndProg(int)':
view.cc:589: `SIGINT' undeclared (first use this function)
view.cc:589: `SIG_IGN' undeclared (first use this function)
*** Error code 1
make: Fatal error: Command failed for target `view.o'
-------------------------------------------------------------------------

There is (obviously) also a problem with using the signal command, but
when I took all of the stuff dealing with that out, the curses portion
still didn't work, so I thought it would be beneficial to show all of
the problems I am having.

The only files I am including (other than those written by myself) are
stdio.h and curses.h.  I've also tried adding in term.h, but that wasn't
found on the suns.

To compile, I'm using g++.

Thank you very much for any help.

					--- Charles
Technical Details
Message-ID: <3s9n9q$pas@gap.cco.caltech.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc89c,4a274b7abdd7681e,start
X-Google-Attributes: gidfc89c,public
X-Google-Thread: 10ba33,4a274b7abdd7681e,start
X-Google-Attributes: gid10ba33,public
From: charles@rigel.krl.caltech.edu (Charles Ofria)
Subject: HELP: Curses on SunOS...
Date: 1995/06/21
Message-ID: <3s9n9q$pas@gap.cco.caltech.edu>
X-Deja-AN: 104876901
organization: Kellogg Radiation Lab, Caltech
newsgroups: comp.unix.programmer,gnu.g++.help