Date: Mon, 4 May 1998 11:06:13 +0300 (IDT) From: Eli Zaretskii To: "Thiago F.G. Albuquerque" 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.