Mail Archives: djgpp/2001/06/15/08:15:20
From: | "Chris Wilkinson" <chrisw AT wam DOT umd DOT edu>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Link errors with Debug switch on
|
Date: | Fri, 15 Jun 2001 08:14:22 -0400
|
Organization: | University of Maryland College Park
|
Lines: | 262
|
Message-ID: | <9gcu73$3s7$1@hecate.umd.edu>
|
References: | <000801c0f518$4cddd300$5a3e0281 AT umd DOT edu> <9791-Fri15Jun2001104543+0300-eliz AT is DOT elta DOT co DOT il>
|
NNTP-Posting-Host: | enme-90.umd.edu
|
X-Trace: | hecate.umd.edu 992607267 3975 129.2.62.90 (15 Jun 2001 12:14:27 GMT)
|
X-Complaints-To: | abuse AT wam DOT umd DOT edu
|
NNTP-Posting-Date: | 15 Jun 2001 12:14:27 GMT
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Newsreader: | Microsoft Outlook Express 5.50.4133.2400
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
"Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> wrote in message
news:9791-Fri15Jun2001104543+0300-eliz AT is DOT elta DOT co DOT il...
> > From: "Chris Wilkinson" <chrisw AT wam DOT umd DOT edu>
> > Date: Thu, 14 Jun 2001 17:23:47 -0400
>
> Please keep this discussion on the mailing list, so that others will
> be able to suggest solutions.
>
> > I now have gcc reading the specs from:
> > c:/djgpp/lib/gcc-lib/djgpp/2.953/specs
> >
> > however the same link errors are produced.
>
> Please post the output of the compilation with -v, once with -g and
> the other time without it. There has to be something that is
> different between these two commands, because -g doesn't cause any
> code to be generated.
Here are two output traces with -v and -g -v switches.
The outputs are the same except for the temporary file names and the link
errors. These were produced from the gcc command line, nothing to do with
RSXNTJ.
(1) gcc output with -v
--->>> START OF OUTPUT
C:\FFOP\src\OneUnit>gcc -o lsbfnew.exe lsbfnew.c lssolve.c ipmpar.c
dcdflib.c -v -Wall
Reading specs from c:/djgpp/lib/gcc-lib/djgpp/2.953/specs
gcc version 2.95.3 20010315/djgpp (release)
c:/djgpp/lib/gcc-lib/djgpp/2.953/cpp0.exe -lang-c -v -D__GNUC__=2 -D__GNUC_M
INOR__=95 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__unix__ -D__i386__ -D__G
O32__ -D__DJGPP__=2 -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__M
SDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -Wall -Acpu(
i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imacros
c:/djgpp/lib/djgpp.ver -remap lsbfnew.c c:/djgpp/tmp\cc76u6M7.i
GNU CPP version 2.95.3 20010315/djgpp (release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
c:/djgpp/lib/gcc-lib/djgpp/2.953/include
c:/djgpp/include
End of search list.
The following default directories have been omitted from the search path:
$DJDIR/lang/cxx
$DJDIR/lib/gcc-lib/djgpp/2.953/../../../../djgpp/include
End of omitted list.
c:/djgpp/lib/gcc-lib/djgpp/2.953/cc1.exe
c:/djgpp/tmp\cc76u6M7.i -quiet -dumpbase lsbfnew.c -Wall -version -o
c:/djgpp/tmp\cc8pqudf.s
GNU C version 2.95.3 20010315/djgpp (release) (djgpp) compiled by GNU C
version 2.95.3 20010315/djgpp (release).
cdflib.h:41: warning: `E0000' declared `static' but never defined
cdflib.h:45: warning: `E0001' declared `static' but never defined
c:/djgpp/bin/as.exe -o c:/djgpp/tmp\cc2Fxghu.o c:/djgpp/tmp\cc8pqudf.s
c:/djgpp/lib/gcc-lib/djgpp/2.953/cpp0.exe -lang-c -v -D__GNUC__=2 -D__GNUC_M
INOR__=95 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__unix__ -D__i386__ -D__G
O32__ -D__DJGPP__=2 -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__M
SDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -Wall -Acpu(
i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imacros
c:/djgpp/lib/djgpp.ver -remap lssolve.c c:/djgpp/tmp\cc76u6M7.i
GNU CPP version 2.95.3 20010315/djgpp (release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
c:/djgpp/lib/gcc-lib/djgpp/2.953/include
c:/djgpp/include
End of search list.
The following default directories have been omitted from the search path:
$DJDIR/lang/cxx
$DJDIR/lib/gcc-lib/djgpp/2.953/../../../../djgpp/include
End of omitted list.
c:/djgpp/lib/gcc-lib/djgpp/2.953/cc1.exe
c:/djgpp/tmp\cc76u6M7.i -quiet -dumpbase lssolve.c -Wall -version -o
c:/djgpp/tmp\cc8pqudf.s
GNU C version 2.95.3 20010315/djgpp (release) (djgpp) compiled by GNU C
version 2.95.3 20010315/djgpp (release).
c:/djgpp/bin/as.exe -o c:/djgpp/tmp\ccafJhdl.o c:/djgpp/tmp\cc8pqudf.s
c:/djgpp/lib/gcc-lib/djgpp/2.953/cpp0.exe -lang-c -v -D__GNUC__=2 -D__GNUC_M
INOR__=95 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__unix__ -D__i386__ -D__G
O32__ -D__DJGPP__=2 -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__M
SDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -Wall -Acpu(
i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imacros
c:/djgpp/lib/djgpp.ver -remap ipmpar.c c:/djgpp/tmp\cc76u6M7.i
GNU CPP version 2.95.3 20010315/djgpp (release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
c:/djgpp/lib/gcc-lib/djgpp/2.953/include
c:/djgpp/include
End of search list.
The following default directories have been omitted from the search path:
$DJDIR/lang/cxx
$DJDIR/lib/gcc-lib/djgpp/2.953/../../../../djgpp/include
End of omitted list.
c:/djgpp/lib/gcc-lib/djgpp/2.953/cc1.exe
c:/djgpp/tmp\cc76u6M7.i -quiet -dumpbase ipmpar.c -Wall -version -o
c:/djgpp/tmp\cc8pqudf.s
GNU C version 2.95.3 20010315/djgpp (release) (djgpp) compiled by GNU C
version 2.95.3 20010315/djgpp (release).
c:/djgpp/bin/as.exe -o c:/djgpp/tmp\ccFUwT3u.o c:/djgpp/tmp\cc8pqudf.s
c:/djgpp/lib/gcc-lib/djgpp/2.953/cpp0.exe -lang-c -v -D__GNUC__=2 -D__GNUC_M
INOR__=95 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__unix__ -D__i386__ -D__G
O32__ -D__DJGPP__=2 -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__M
SDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -Wall -Acpu(
i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imacros
c:/djgpp/lib/djgpp.ver -remap dcdflib.c c:/djgpp/tmp\cc76u6M7.i
GNU CPP version 2.95.3 20010315/djgpp (release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
c:/djgpp/lib/gcc-lib/djgpp/2.953/include
c:/djgpp/include
End of search list.
The following default directories have been omitted from the search path:
$DJDIR/lang/cxx
$DJDIR/lib/gcc-lib/djgpp/2.953/../../../../djgpp/include
End of omitted list.
c:/djgpp/lib/gcc-lib/djgpp/2.953/cc1.exe
c:/djgpp/tmp\cc76u6M7.i -quiet -dumpbase dcdflib.c -Wall -version -o
c:/djgpp/tmp\cc8pqudf.s
GNU C version 2.95.3 20010315/djgpp (release) (djgpp) compiled by GNU C
version 2.95.3 20010315/djgpp (release).
c:/djgpp/bin/as.exe -o c:/djgpp/tmp\ccCTlWAv.o c:/djgpp/tmp\cc8pqudf.s
c:/djgpp/lib/gcc-lib/djgpp/2.953/collect2.exe -o lsbfnew.exe
c:/djgpp/lib/crt0.o -Lc:/djgpp/lib -Lc:/djgpp/lib -Lc:/djgpp/lib/gcc-lib/djg
pp/2.953 -Lc:/djgpp/bin -Lc:/djgpp/lib c:/djgpp/tmp\cc2Fxghu.o
c:/djgpp/tmp\ccafJhdl.o c:/djgpp/tmp\ccFUwT3u.o
c:/djgpp/tmp\ccCTlWAv.o -lgcc -lc -lgcc -Tdjgpp.djl
c:/djgpp/bin/stubify.exe -v lsbfnew.exe
stubify for djgpp V2.X executables, Copyright (C) 1995 DJ Delorie
stubify: lsbfnew.exe -> lsbfnew.000 -> lsbfnew.exe
C:\FFOP\src\OneUnit>
END OF OUTPUT
(2) gcc output with -v -g
--->>>START OF OUTPUT
C:\FFOP\src\OneUnit>gcc -o lsbfnew.exe lsbfnew.c lssolve.c ipmpar.c
dcdflib.c -g -v -Wall
Reading specs from c:/djgpp/lib/gcc-lib/djgpp/2.953/specs
gcc version 2.95.3 20010315/djgpp (release)
c:/djgpp/lib/gcc-lib/djgpp/2.953/cpp0.exe -lang-c -v -D__GNUC__=2 -D__GNUC_M
INOR__=95 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__unix__ -D__i386__ -D__G
O32__ -D__DJGPP__=2 -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__M
SDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -g -Wall -Ac
pu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imac
ros c:/djgpp/lib/djgpp.ver -remap lsbfnew.c c:/djgpp/tmp\ccDiq5SI.i
GNU CPP version 2.95.3 20010315/djgpp (release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
c:/djgpp/lib/gcc-lib/djgpp/2.953/include
c:/djgpp/include
End of search list.
The following default directories have been omitted from the search path:
$DJDIR/lang/cxx
$DJDIR/lib/gcc-lib/djgpp/2.953/../../../../djgpp/include
End of omitted list.
c:/djgpp/lib/gcc-lib/djgpp/2.953/cc1.exe
c:/djgpp/tmp\ccDiq5SI.i -quiet -dumpbase lsbfnew.c -g -Wall -version -o
c:/djgpp/tmp\cccoTMKt.s
GNU C version 2.95.3 20010315/djgpp (release) (djgpp) compiled by GNU C
version 2.95.3 20010315/djgpp (release).
cdflib.h:41: warning: `E0000' declared `static' but never defined
cdflib.h:45: warning: `E0001' declared `static' but never defined
c:/djgpp/bin/as.exe -o c:/djgpp/tmp\ccnbjUjy.o c:/djgpp/tmp\cccoTMKt.s
c:/djgpp/lib/gcc-lib/djgpp/2.953/cpp0.exe -lang-c -v -D__GNUC__=2 -D__GNUC_M
INOR__=95 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__unix__ -D__i386__ -D__G
O32__ -D__DJGPP__=2 -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__M
SDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -g -Wall -Ac
pu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imac
ros c:/djgpp/lib/djgpp.ver -remap lssolve.c c:/djgpp/tmp\ccDiq5SI.i
GNU CPP version 2.95.3 20010315/djgpp (release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
c:/djgpp/lib/gcc-lib/djgpp/2.953/include
c:/djgpp/include
End of search list.
The following default directories have been omitted from the search path:
$DJDIR/lang/cxx
$DJDIR/lib/gcc-lib/djgpp/2.953/../../../../djgpp/include
End of omitted list.
c:/djgpp/lib/gcc-lib/djgpp/2.953/cc1.exe
c:/djgpp/tmp\ccDiq5SI.i -quiet -dumpbase lssolve.c -g -Wall -version -o
c:/djgpp/tmp\cccoTMKt.s
GNU C version 2.95.3 20010315/djgpp (release) (djgpp) compiled by GNU C
version 2.95.3 20010315/djgpp (release).
c:/djgpp/bin/as.exe -o c:/djgpp/tmp\ccN89Gr5.o c:/djgpp/tmp\cccoTMKt.s
c:/djgpp/lib/gcc-lib/djgpp/2.953/cpp0.exe -lang-c -v -D__GNUC__=2 -D__GNUC_M
INOR__=95 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__unix__ -D__i386__ -D__G
O32__ -D__DJGPP__=2 -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__M
SDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -g -Wall -Ac
pu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imac
ros c:/djgpp/lib/djgpp.ver -remap ipmpar.c c:/djgpp/tmp\ccDiq5SI.i
GNU CPP version 2.95.3 20010315/djgpp (release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
c:/djgpp/lib/gcc-lib/djgpp/2.953/include
c:/djgpp/include
End of search list.
The following default directories have been omitted from the search path:
$DJDIR/lang/cxx
$DJDIR/lib/gcc-lib/djgpp/2.953/../../../../djgpp/include
End of omitted list.
c:/djgpp/lib/gcc-lib/djgpp/2.953/cc1.exe
c:/djgpp/tmp\ccDiq5SI.i -quiet -dumpbase ipmpar.c -g -Wall -version -o
c:/djgpp/tmp\cccoTMKt.s
GNU C version 2.95.3 20010315/djgpp (release) (djgpp) compiled by GNU C
version 2.95.3 20010315/djgpp (release).
c:/djgpp/bin/as.exe -o c:/djgpp/tmp\ccDvDCh3.o c:/djgpp/tmp\cccoTMKt.s
c:/djgpp/lib/gcc-lib/djgpp/2.953/cpp0.exe -lang-c -v -D__GNUC__=2 -D__GNUC_M
INOR__=95 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__unix__ -D__i386__ -D__G
O32__ -D__DJGPP__=2 -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__M
SDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -g -Wall -Ac
pu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imac
ros c:/djgpp/lib/djgpp.ver -remap dcdflib.c c:/djgpp/tmp\ccDiq5SI.i
GNU CPP version 2.95.3 20010315/djgpp (release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
c:/djgpp/lib/gcc-lib/djgpp/2.953/include
c:/djgpp/include
End of search list.
The following default directories have been omitted from the search path:
$DJDIR/lang/cxx
$DJDIR/lib/gcc-lib/djgpp/2.953/../../../../djgpp/include
End of omitted list.
c:/djgpp/lib/gcc-lib/djgpp/2.953/cc1.exe
c:/djgpp/tmp\ccDiq5SI.i -quiet -dumpbase dcdflib.c -g -Wall -version -o
c:/djgpp/tmp\cccoTMKt.s
GNU C version 2.95.3 20010315/djgpp (release) (djgpp) compiled by GNU C
version 2.95.3 20010315/djgpp (release).
c:/djgpp/bin/as.exe -o c:/djgpp/tmp\ccKS7q0J.o c:/djgpp/tmp\cccoTMKt.s
c:/djgpp/lib/gcc-lib/djgpp/2.953/collect2.exe -o lsbfnew.exe
c:/djgpp/lib/crt0.o -Lc:/djgpp/lib -Lc:/djgpp/lib -Lc:/djgpp/lib/gcc-lib/djg
pp/2.953 -Lc:/djgpp/bin -Lc:/djgpp/lib c:/djgpp/tmp\ccnbjUjy.o
c:/djgpp/tmp\ccN89Gr5.o c:/djgpp/tmp\ccDvDCh3.o
c:/djgpp/tmp\ccKS7q0J.o -lgcc -lc -lgcc -Tdjgpp.djl
c:/djgpp/tmp\ccKS7q0J.o: In function `exparg':
dcdflib.c:7245: undefined reference to `ipmpar'
dcdflib.c:7261: undefined reference to `ipmpar'
dcdflib.c:7265: undefined reference to `ipmpar'
c:/djgpp/tmp\ccKS7q0J.o: In function `psi':
dcdflib.c:8593: undefined reference to `ipmpar'
c:/djgpp/tmp\ccKS7q0J.o: In function `spmpar':
dcdflib.c:8928: undefined reference to `ipmpar'
c:/djgpp/tmp\ccKS7q0J.o:dcdflib.c:8929: more undefined references to
`ipmpar' follow
collect2: ld returned 1 exit status
C:\FFOP\src\OneUnit>
END OF OUTPUT
- Raw text -