delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/10/17/02:00:16

From: null AT labofmadness DOT com (JMH)
Newsgroups: comp.os.msdos.djgpp
Subject: Newbie PD curses strangeness - undefined '_initscr'
Organization: Lab of Madness
Message-ID: <3daf44bd.44216409@netnews.attbi.com>
X-Newsreader: Forte Agent 1.5/32.451
MIME-Version: 1.0
Lines: 26
NNTP-Posting-Host: 12.228.115.236
X-Complaints-To: abuse AT attbi DOT com
X-Trace: sccrnsc03 1034834079 12.228.115.236 (Thu, 17 Oct 2002 05:54:39 GMT)
NNTP-Posting-Date: Thu, 17 Oct 2002 05:54:39 GMT
Date: Thu, 17 Oct 2002 05:54:39 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hours of pouring through Dejagoogle haven't given me assistance (and
since the last question I asked ended up with me realizing I must have
had a screwy download to blame for my troubles, I'm asking you folks.)

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'

Similiar errors appear when other curses functions are called. I saw
an answer on google that boiled down to RTFM, but that ain't helpin'.

Please let me know what I'm doing wrong (or if one of the fabled c++
wrappers for curses is what I should be using in the first place).

-JMH

- Raw text -


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