*BSD News Article 30442


Return to BSD News archive

Newsgroups: comp.os.386bsd.development
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!newsfeed.ksu.ksu.edu!moe.ksu.ksu.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!news2.near.net!noc.near.net!oz.plymouth.edu!ted
From: ted@oz.plymouth.edu (The Wizard of Oz)
Subject: Re: [?] Problems compiling curses program!!
Message-ID: <1994May12.182222.29441@oz.plymouth.edu>
Organization: Plymouth State College - Plymouth, NH.
References: <2qr12u$6e8@news.tamu.edu> <2qsfk6$19o@rigel.infinet.com>
Date: Thu, 12 May 94 18:22:22 GMT
Lines: 29

In article <2qsfk6$19o@rigel.infinet.com> mfoley@infinet.com (Mark Foley) writes:
>Dan Hickman (hickman@prism.tamu.edu) wrote:
>: I am having problems compiling a curses program.  It gives errors stating
>: that
>: 'A_REVERSE' undefined
>: 'A_BOLD' undefined
>: 'A_BLINK' undefined
>
>: my compile command is:
>: cc -o menu menu.c -lcurses -ltermcap
>
>If you are including curses.h in your program, I can't imagine why you
>would get these errors. They are #define's in this header. Do you have:
>
>#include <curses.h>

	The reason he  gets the errors is because they are not defined
in 'curses.h'.  They are defined in the 'X/Open' Curses package which
is not part of the *BSD distribution.  It is available on some
other variations of Unix (Ultrix).  On those machines you would
include 'cursesX.h'.


|   Ted Wisniewski    			INET:  ted@oz.plymouth.edu       |
|   Computer Services                                or                  |
|   Plymouth State College                     tedw@psc.plymouth.edu     |
|   Plymouth NH, 03264                                                   |