delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2008/02/20/01:17:42

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: r DOT veerakumar AT gmail DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How to compile a curses program with PDCurses
Date: Tue, 19 Feb 2008 22:12:34 -0800 (PST)
Organization: http://groups.google.com
Lines: 38
Message-ID: <1b85dfb6-3a08-4862-b077-fbc8ec72976c@d21g2000prf.googlegroups.com>
References: <ecf2ba29-90c4-4929-a150-a5cd26e8165c AT s13g2000prd DOT googlegroups DOT com>
<47bb2ff8$0$4296$9b4e6d93 AT newsspool3 DOT arcor-online DOT net>
NNTP-Posting-Host: 59.176.98.2
Mime-Version: 1.0
X-Trace: posting.google.com 1203487955 560 127.0.0.1 (20 Feb 2008 06:12:35 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Wed, 20 Feb 2008 06:12:35 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: d21g2000prf.googlegroups.com; posting-host=59.176.98.2;
posting-account=FO3EuwoAAADhxlxut1yaZC6qfTeGtCix
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12)
Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Feb 20, 12:35 am, Robert Riebisch <Robert DOT Riebi DOT  DOT  DOT  AT arcor DOT de> wrote:
> r DOT veeraku DOT  DOT  DOT  AT gmail DOT com wrote:
> > Please help me!
>
> Please reveal more details! Any error messages?
>
> --
> Robert Riebisch
> Bitte NUR in der Newsgroup antworten!
> Please reply to the Newsgroup ONLY!

I tried using this command to compile. I have included curses.h
include statement.
gcc -lpdcurses -o a.exe a.c

It outputs:
e:/djgpp/tmp/ccZvZ54W.o:ttt.c:(.text+0x345): undefined reference to
`_initscr'
e:/djgpp/tmp/ccZvZ54W.o:ttt.c:(.text+0x34a): undefined reference to
`_cbreak'
e:/djgpp/tmp/ccZvZ54W.o:ttt.c:(.text+0x34f): undefined reference to
`_noecho'
e:/djgpp/tmp/ccZvZ54W.o:ttt.c:(.text+0x354): undefined reference to
`_refresh'
e:/djgpp/tmp/ccZvZ54W.o:ttt.c:(.text+0x359): undefined reference to
`_stdscr'
e:/djgpp/tmp/ccZvZ54W.o:ttt.c:(.text+0x364): undefined reference to
`_scrollok'
e:/djgpp/tmp/ccZvZ54W.o:ttt.c:(.text+0x3a6): undefined reference to
`_printw'
e:/djgpp/tmp/ccZvZ54W.o:ttt.c:(.text+0x3d6): undefined reference to
`_endwin'
and so on & then last two lines.
e:/djgpp/tmp/ccZvZ54W.o:ttt.c:(.text+0xa6a2): undefined reference to
`_refresh'
collect2: ld returned 1 exit status

I also tried using -lcurso or -llibpdcurses but none compiled my code.

- Raw text -


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