delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/27/04:32:30

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: library file problem, unknown origin.
Date: 27 Feb 2002 09:16:21 GMT
Organization: Ericsson Erisoft AB, Sweden
Lines: 38
Message-ID: <a5i855$fmk$1@antares.lu.erisoft.se>
References: <9jgo7usudtnhnn9iqcrcs1ktm1tan7pktu AT 4ax DOT com>
NNTP-Posting-Host: lws256.lu.erisoft.se
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

David Gravereaux (davygrvy AT pobox DOT com) wrote:
: Sources where compiled with -mno-80387.
: All goes great until I link:

: $(TCLSH) : $(TMP_DIR)/tclshrl.o $(TMP_DIR)/tclreadline.o $(TCL_LIB_FILE) $(TCPIP_LIB)
: 	$(CC) -o $@ -lemu -lreadline $^

: Which result in:
: gcc -o out/dos-ix86/bin/tclsh84.exe -lemu -lreadline build/tclshrl.o build/tclre
: adline.o out/dos-ix86/lib/libtcl84.a d:/watts32-2.1r5/lib/libwatt.a

: And gives me pages of the following:

...

: build/tclreadline.o(.text+0xe4b):tclreadline.c: undefined reference to
: `rl_reset_terminal'
: build/tclreadline.o(.text+0xe6d):tclreadline.c: undefined reference to `ding'
: ^-- Those are all part of libreadline.a, which is in c:/djgpp/lib

...

: out/dos-ix86/lib/libtcl84.a(tclBasic.o)(.text+0x3483):tclBasic.c: undefined reference to
: `__floatsidf'
: out/dos-ix86/lib/libtcl84.a(tclBasic.o)(.text+0x350b):tclBasic.c: undefined reference to
: `__nedf2'
: ^---  Aren't those part of the fpu emulation library libemu.a?

: I'm at a total loss..  Anyone have some ideas what's going on?

You must be made aware of that ld is a one-pass linker. So rearrange
the command line to "	$(CC) -o $@ $^ -lreadline -lemu" and see what
happens.


Right,

						MartinS

- Raw text -


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