cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/04/04:08:52

Date: Mon, 4 May 1998 11:06:13 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Thiago F.G. Albuquerque" <thiagofga AT ambr DOT com DOT br>
cc: djgpp AT delorie DOT com
Subject: Re: PDcurses and 'nodefaultlibs'
In-Reply-To: <3.0.5.32.19980503123954.00798bc0@200.252.238.1>
Message-ID: <Pine.SUN.3.91.980504110547.23995B-100000@is>
MIME-Version: 1.0

On Sun, 3 May 1998, Thiago F.G. Albuquerque wrote:

> c:/djgpp/lib/libc.a(conio.o)(.text+0x640):conio.c: multiple definition of
> `ungetch'
> c:\djgpp\contrib\pdcurs22\lib/libcurso.a(getch.o)(.text+0x264):getch.c:
> first defined here

Your problem is most likely that you use some of the conio functions
as well as Curses functions.  These are incompatible, and that's why
Curses has its own versions of `getch' and `ungetch'.  You need to
look through your sources, find those conio functions you are using,
and replace them with calls to Curses functions with similar
functionality.

> If I use the '-nostdlib' option, however, I get this:

Don't even try this.  You cannot link a program with -nostdlib unless
you provide your own files with all the startup stuff.

> I guess the correct option to use would be '-nodefaultlibs', but gcc 'says'
> it is not a recognized option (!).

That's correct, -nodefaultlibs is a non-existent option, the docs lies
on that.  But it would not help you even if it were supported, since
some of the startup code is in the library, so you cannot link a
program without supplying your own startup code.

> Is there any option that makes gcc list all its options (like -h,
> for example?).

No, there is no such option.

- Raw text -


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