www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/10/17/02:29:15

Date: Thu, 17 Oct 2002 08:28:56 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: JMH <null AT labofmadness DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Newbie PD curses strangeness - undefined '_initscr'
In-Reply-To: <3daf44bd.44216409@netnews.attbi.com>
Message-ID: <Pine.SUN.3.91.1021017082719.3848L-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 17 Oct 2002, JMH wrote:

> #include <curses.h>
> 
> int main() {
>     initscr();
>     return 0;
> }
> 
> compiles file, but linking gives:
> 
> Error: undefined reference to '_initscr'

Did you mention -lpdcurses on the link command line?  If not, the linker 
won't look into the PDCurses library and won't find its functions.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019