www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/09/11/07:33:28

Message-Id: <200109111130.f8BBUTV25979@postino5.prima.com.ar>
From: "Orlando P. Hevia" <heviaop AT ciudad DOT com DOT ar>
To: djgpp AT delorie DOT com
Date: Tue, 11 Sep 2001 08:29:13 -0300
MIME-Version: 1.0
Subject: link error with gpc
References: <20010910 DOT 230100 DOT 8798 DOT 1 DOT vmccar AT juno DOT com>
In-reply-to: <Pine.SUN.3.91.1010911103508.2127P-100000@is>
X-mailer: Pegasus Mail for Windows (v3.12b)
Reply-To: djgpp AT delorie DOT com

I am compiling a subroutine in PASCAL, no problem at 
compiling time.

At link time with a FORTRAN program (as a library), I 
receive this error message:

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

The PASCAL source is a sample of how to add foreign 
routines to the main program. Both FORTRAN an C foreign 
routines are correctly linked. Only PASCAL has the problem.



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