www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2010/03/28/22:15:19

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: RayeR <glaux AT centrum DOT cz>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: djgpp/libreadline bug? (cannot use backspace)
Date: Sun, 28 Mar 2010 19:58:14 -0700 (PDT)
Organization: http://groups.google.com
Lines: 34
Message-ID: <33944e03-8325-4651-9f73-202b4f1202e2@z11g2000yqz.googlegroups.com>
References: <013d25d6-f34d-4686-9c68-0de775d5bf59 AT t20g2000yqe DOT googlegroups DOT com>
<483594ac-251d-4b57-b753-34701cd941fc AT 19g2000yqu DOT googlegroups DOT com>
<a39609aa-b511-424c-8bac-f7d5e89b274a AT z35g2000yqd DOT googlegroups DOT com>
<e2f8f69b-01d0-4b14-abe3-11672f25ab5b AT t23g2000yqt DOT googlegroups DOT com>
<7705c9031003082118y4a617ce4p8e70fcc4e6949c8b AT mail DOT gmail DOT com>
<c371ad0b-67a6-4d85-9a3a-2ae5ddf29186 AT q16g2000yqq DOT googlegroups DOT com>
<7705c9031003122205u29f3d86dkb94e472d76b6d553 AT mail DOT gmail DOT com>
<9dd368da-7195-43ac-ac5b-6560a6a93bed AT k17g2000yqb DOT googlegroups DOT com>
<7705c9031003141648k4de53b9cs1bfdc8e709f2f19 AT mail DOT gmail DOT com>
NNTP-Posting-Host: 213.220.252.124
Mime-Version: 1.0
X-Trace: posting.google.com 1269831494 27702 127.0.0.1 (29 Mar 2010 02:58:14 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Mon, 29 Mar 2010 02:58:14 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: z11g2000yqz.googlegroups.com; posting-host=213.220.252.124;
posting-account=Q0wMHAoAAADjYrghh94FTf6YnbpTqZgp
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23)
Gecko/20090825 SeaMonkey/1.1.18,gzip(gfe)
Bytes: 2805
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I'm trying to compile one of my project which use conio with readline
and ncurces and got linker messed up:

e:/djgpp/lib/libc.a(conio.o):conio.c:(.text+0x890): multiple
definition of `_get
ch'
e:/djgpp/lib/libncurses.a(lib_gen.o):lib_gen.c:(.text+0x390): first
defined here

e:/djgpp/lib/libc.a(conio.o):conio.c:(.text+0x960): multiple
definition of `_ung
etch'
e:/djgpp/lib/libncurses.a(lib_ungetch.o):lib_ungetch.c:(.text+0xc0):
first defin
ed here
e:/djgpp/lib/libncurses.a(lib_mouse.o):lib_mouse.c:(.text+0x1cc):
undefined refe
rence to `_Gpm_Open'
e:/djgpp/lib/libncurses.a(lib_mouse.o):lib_mouse.c:(.text+0x1ee):
undefined refe
rence to `_Gpm_Close'
e:/djgpp/lib/libncurses.a(lib_mouse.o):lib_mouse.c:(.text+0x2f6):
undefined refe
rence to `_gpm_fd'
e:/djgpp/lib/libncurses.a(lib_mouse.o):lib_mouse.c:(.text+0x3ad):
undefined refe
rence to `_Gpm_GetEvent'
e:/djgpp/lib/libncurses.a(lib_mouse.o):lib_mouse.c:(.text+0x6fc):
undefined refe
rence to `_gpm_fd'
collect2: ld returned 1 exit status

just linking with [object files] -lreadline -lncurses
How to solve this?

- Raw text -


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