Mail Archives: djgpp/2001/09/17/10:01:27
> From: "Orlando P. Hevia" <heviaop AT ciudad DOT com DOT ar>
> Date: Mon, 17 Sep 2001 08:47:09 -0300
>
> 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
This is very strange: the linker does scan libc.a, but doesn't find a
function that is in there. What version of the DJGPP library do you
have? What is the value of __DJGPP_MINOR__ in the sys/version.h
header file?
- Raw text -