Mail Archives: djgpp/1998/05/04/04:08:52
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 -