www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/10/17/03:05:57

From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Newbie PD curses strangeness - undefined '_initscr'
Date: 17 Oct 2002 06:34:24 GMT
Organization: Ericsson Erisoft AB, Sweden
Lines: 23
Message-ID: <aolllg$198$1@antares.lu.erisoft.se>
References: <3daf44bd DOT 44216409 AT netnews DOT attbi DOT com>
NNTP-Posting-Host: lws256.lu.erisoft.se
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

JMH (null AT labofmadness DOT com) wrote:
: Trying to get pdcurses working.

: Unpacked the binary.

: #include <curses.h>

: int main() {
:     initscr();
:     return 0;
: }

: compiles file, but linking gives:

: Error: undefined reference to '_initscr'

Do you link in the pdcurses library (-lpdcurses or something like
that)?


Right,

						MartinS

- Raw text -


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