delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/03/16:27:35

Message-Id: <3.0.5.32.19980503123954.00798bc0@200.252.238.1>
Date: Sun, 03 May 1998 12:39:54 -0300
To: djgpp AT delorie DOT com
From: "Thiago F.G. Albuquerque" <thiagofga AT ambr DOT com DOT br>
Subject: PDcurses and 'nodefaultlibs'
Mime-Version: 1.0

I am trying to compile a source with PDcurses library. When I use this
command:

C:\C\source>gcc menu_x.c -Ic:\djgpp\contrib\pdcurs22\include
-Lc:\djgpp\contrib\pdcurs22\lib -lcurso -o menu_x.exe

I receive this error:

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

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

c:/djgpp/bin/ld.exe: warning: cannot find entry symbol start; defaulting to
0000
10d0

I guess the correct option to use would be '-nodefaultlibs', but gcc 'says'
it is not a recognized option (!). Is there any option that makes gcc list
all its options (like -h, for example?).

Thanks,
Thiago

- Raw text -


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