delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/09/17/07:52:53

Message-Id: <200109171148.f8HBmTj78398@postino3.int.prima.com.ar>
From: "Orlando P. Hevia" <heviaop AT ciudad DOT com DOT ar>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Date: Mon, 17 Sep 2001 08:47:09 -0300
MIME-Version: 1.0
Subject: Re: link error with gpc
CC: djgpp AT delorie DOT com
References: <200109111130 DOT f8BBUTV25979 AT postino5 DOT prima DOT com DOT ar>
In-reply-to: <Pine.SUN.3.91.1010911143348.4452C-100000@is>
X-mailer: Pegasus Mail for Windows (v3.12b)
Reply-To: djgpp AT delorie DOT com

Sorry by the delay, I am recovering from a surgery.

Eli Zaretskii wrote:

> 
> These functions are in libc.a, so I'm guessing that the
> order of the libraries on the link command line was wrong. 
> Link with -v and look at the command used to invoke the
> linker; if that doesn't give a clue, post everything the
> compiler printed here.

Here is the output:


g77 version 2.95.3 20010315/djgpp (release) (from FSF-g77 
version 0.5.25 20010315 (release))
Driving: G:\USR\BIN/g77.exe -v -o tpbigp.exe dimdef.o 
newmods.o comtac.o fgnptest.o fgnmod.o usernl.o tpbig.a 
dislin.a -lgpc -lg2c -lm
Reading specs from g:/usr/lib/gcc-lib/djgpp/2.953/specs
gcc version 2.95.3 20010315/djgpp (release)
 g:/usr/lib/gcc-lib/djgpp/2.953/collect2.exe -o tpbigp.exe 
g:/usr/lib/crt0.o -Lg:/usr/lib/gcc-lib/djgpp/2.953 -
Lg:/usr/bin -Lg:/usr/lib dimdef.o newmods.o comtac.o 
fgnptest.o fgnmod.o usernl.o tpbig.a dislin.a -lgpc -lg2c -
lm -lgcc -lc -lgcc -Tdjgpp.djl
g:/usr/lib/gcc-
lib/djgpp/2.953/libgpc.a(rts.o)(.text+0x19c4):rts.c: 
undefined reference to `tcsetpgrp'
g:/usr/lib/gcc-
lib/djgpp/2.953/libgpc.a(rts.o)(.text+0x19f0):rts.c: 
undefined reference to `tcgetpgrp'
collect2: ld returned 1 exit status
make.exe: *** [tpbigp.exe] Error 1


target: tpbigp.exe

The makefile I used follows:

OBJS = dimdef.o newmods.o comtac.o fgnptest.o fgnmod.o 
usernl.o
LIBS = tpbig.a dislin.a

.f.o:
	g77 -c -O2 $< 

comtac.o: comtac.f codetacs.inc decktac1.inc decktac2.inc
	g77 -c -O2 $< 

fgnptest.o: fgnptest.pas
	gpc -c -O2 $< 

fgnmod.o: fgnmod.f
	g77 -c -O2 $< 

tpbigp.exe: $(OBJS) $(LIBS) 
	g77 -v -o tpbigp.exe $(OBJS) $(LIBS) -lgpc

Regards,

OPH. 2001-9-17 8:47


Ing. Orlando P. Hevia   
heviaop AT ciudad DOT com DOT ar
Santa Fe-Argentina

- Raw text -


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