delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/02/02:15:53

Date: Thu, 2 Jul 1998 09:15:52 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: djgpp AT delorie DOT com
Subject: Re: library question
In-Reply-To: <359ae4d7.16825528@news>
Message-ID: <Pine.SUN.3.91.980702091522.16260H-100000@is>
MIME-Version: 1.0

On Thu, 2 Jul 1998, Bergholt wrote:

> My problem is that the function in the curses libs conflict with the
> conio functions in libc.a.

This usually happens when you mix PDCurses functions with conio
functions.  You need to examine your code and replace all calls to
conio functions with equivalent PDCurses functions.  Then the problem
should go away.

> Is there a way to include most, but not all of the functions in
> libc.a?

The linker doesn't include all of the library (otherwise even a hello
world program would take 600KB), it only includes those object modules
that it needs to resolve the external references in your code.

The problem is that all the conio functions are defined on a single
module, since they are tightly coupled, so if you use even a single
conio function, the linker links in all of them.

The solution, as I said above, is to avoid mixing PDCurses and conio.
They are incompatible.

- Raw text -


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