www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/02/04:02:47

Date: Wed, 2 Jul 1997 11:02:13 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Jim Chapman <jim DOT chapman AT sympatico DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: ungetch
In-Reply-To: <33B9BF05.6C0F@sympatico.ca>
Message-ID: <Pine.SUN.3.91.970702110148.27453D-100000@is>
MIME-Version: 1.0

On Tue, 1 Jul 1997, Jim Chapman wrote:

> I just compiled a program and received the following error
> 
> libc.a(conio.o) multiple definition of "ungetch"
> libcurso.a(getch.o) first defined here

Don't mix Curses with conio.  Curses has everything that you might
need, so instead of whatever conio functions you call now, just call
functions from curses that do the same.

> I think I should remove the definition from libcurso.a

If you do that, I think your program won't work.  The correct solution
is to not use conio and Curses at the same time.

- Raw text -


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