Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: cmr@world.std.com (Charles M Richmond)
Subject: Re: Problems Linking Curses under OSF/1
Date: Fri, 17 Feb 1995 12:17:42 GMT	[thread overview]
Message-ID: <D458tI.E28@world.std.com> (raw)
In-Reply-To: 3i1hei$jd2@spool.mu.edu

stevax@vinny.csd.mu.edu (Peter L. Buschman) writes:

>I'm sure this problem has an utterly simple fix, but I'm at a loss.
>I'm trying to program using the curses library. Under a VMS system,
>the following program compiles just fine, but on the OSF/1 system, 
>I get linker errors.

>Can anyone help me with this?

>The program is: (minimal curses program)

>: #include <curses.h>
>: 
>: main()
>: {
>:   initscr();
>:   box(stdscr,'%','%');
>:   refresh();
>: }

>And when compiling, the errors are:

>: ld:
>: Unresolved:
>: initscr
>: box
>: stdscr
>: wrefresh


You need to add -lcurses to your compile line inorder to include the curses
library. See the man pages for 'cc' and 'ld'.

Charlie

PS for more complex programs you may need to add -ltermcap (if you are using
termcap).

-- 
*****************************************************************************
*  Charles Richmond 	Integrated International Systems Corporation        *
*  cmr@asoko.iisc.com	cmr@world.std.com				    *
*  Specializing in UNIX, X, Image Processing, and Communications.           *


  reply	other threads:[~1995-02-17 12:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-02-17  6:58 Problems Linking Curses under OSF/1 Peter L. Buschman
1995-02-17 12:17 ` Charles M Richmond [this message]
1995-02-17 15:14 ` ylauriault
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox