Message-Id: <200109111130.f8BBUTV25979@postino5.prima.com.ar> From: "Orlando P. Hevia" To: djgpp AT delorie DOT com Date: Tue, 11 Sep 2001 08:29:13 -0300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: link error with gpc References: <20010910 DOT 230100 DOT 8798 DOT 1 DOT vmccar AT juno DOT com> In-reply-to: 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