From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,7a010f4eab9f18f1,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-02-17 04:17:42 PST Newsgroups: comp.unix.osf.osf1 Path: nntp.gmd.de!stern.fokus.gmd.de!ceres.fokus.gmd.de!zib-berlin.de!news.belwue.de!news.rz.uni-ulm.de!rz.uni-karlsruhe.de!news.uni-stuttgart.de!news.rhrz.uni-bonn.de!news.rwth-aachen.de!news.dfn.de!scsing.switch.ch!news.rediris.es!news.uoregon.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!news.sprintlink.net!uunet!in1.uu.net!world!cmr From: cmr@world.std.com (Charles M Richmond) Subject: Re: Problems Linking Curses under OSF/1 Message-ID: Organization: Integrated International Systems Corp. One Longfellow Place, Suite 3309, Boston, Ma. References: <3i1hei$jd2@spool.mu.edu> Date: Fri, 17 Feb 1995 12:17:42 GMT 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 >: >: 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. *