delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/06/14/12:30:14

From: "Chris Wilkinson" <chrisw AT wam DOT umd DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Link errors with Debug switch on
Date: Thu, 14 Jun 2001 12:21:27 -0400
Organization: University of Maryland College Park
Lines: 153
Message-ID: <9gaoaa$l53$1@hecate.umd.edu>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1010614110108 DOT 972M-100000 AT is>
NNTP-Posting-Host: enme-90.umd.edu
X-Trace: hecate.umd.edu 992535690 21667 129.2.62.90 (14 Jun 2001 16:21:30 GMT)
X-Complaints-To: abuse AT wam DOT umd DOT edu
NNTP-Posting-Date: 14 Jun 2001 16:21:30 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:Pine DOT SUN DOT 3 DOT 91 DOT 1010614110108 DOT 972M-100000 AT is...
>
> On Wed, 13 Jun 2001, Chris Wilkinson wrote:
>
> > When I link some objects with the debug (-g) switch on, then gcc reports
> > some undefined references found and the link fails. If the debug switch
is
> > off then no errors are given and the final .exe is created.
>
> Please post the exact command line you used and the error messages
> printed by the linker when you use -g.

Here is the command line and the output from gcc without the -g switch.
There are no errors.

Start of dump:
cd C:\FFOP\src\OneUnit
gcc -o lsbfnew.exe lsbfnew.c lssolve.c ipmpar.c dcdflib.c -Wall

C:\FFOP\src\OneUnit>gcc -o lsbfnew.exe lsbfnew.c lssolve.c ipmpar.c
dcdflib.c -Wall
cdflib.h:41: warning: `E0000' declared `static' but never defined
cdflib.h:45: warning: `E0001' declared `static' but never defined

C:\FFOP\src\OneUnit>
End of dump:

    and the output from gcc using  -g and -v switches. Link errors reported
at the end.

Start of dump:
cd C:\FFOP\src\OneUnit
gcc -o lsbfnew.exe lsbfnew.c lssolve.c ipmpar.c dcdflib.c -v -g -Wall

C:\FFOP\src\OneUnit>gcc -o lsbfnew.exe lsbfnew.c lssolve.c ipmpar.c
dcdflib.c -v -g -Wall
Reading specs from c:/rsxntdj/lib/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 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=2 -D__unix__ 
-D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=2 -D__unix
 -D__i386 -D__GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=2 -g -Wall
lsbfnew.c c:/djgpp/tmp\ccBephIe.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\ccBephIe.i -m486 -malign-jumps=2 -malign-loops=2 -malign-functi
ons=2 -quiet -dumpbase lsbfnew.c -g -Wall -version -o
c:/djgpp/tmp\ccKPpcrN.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\cczixC0F.o c:/djgpp/tmp\ccKPpcrN.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 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=2 -D__unix__ 
-D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=2 -D__unix
 -D__i386 -D__GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=2 -g -Wall
lssolve.c c:/djgpp/tmp\ccBephIe.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\ccBephIe.i -m486 -malign-jumps=2 -malign-loops=2 -malign-functi
ons=2 -quiet -dumpbase lssolve.c -g -Wall -version -o
c:/djgpp/tmp\ccKPpcrN.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\ccDV5H80.o c:/djgpp/tmp\ccKPpcrN.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 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=2 -D__unix__ 
-D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=2 -D__unix
 -D__i386 -D__GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=2 -g -Wall ipmpar.c
c:/djgpp/tmp\ccBephIe.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\ccBephIe.i -m486 -malign-jumps=2 -malign-loops=2 -malign-functi
ons=2 -quiet -dumpbase ipmpar.c -g -Wall -version -o c:/djgpp/tmp\ccKPpcrN.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\ccTa1I4R.o c:/djgpp/tmp\ccKPpcrN.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 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=2 -D__unix__ 
-D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=2 -D__unix
 -D__i386 -D__GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=2 -g -Wall
dcdflib.c c:/djgpp/tmp\ccBephIe.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\ccBephIe.i -m486 -malign-jumps=2 -malign-loops=2 -malign-functi
ons=2 -quiet -dumpbase dcdflib.c -g -Wall -version -o
c:/djgpp/tmp\ccKPpcrN.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\ccG0fxNy.o c:/djgpp/tmp\ccKPpcrN.s
 c:/djgpp/bin/ld.exe -o lsbfnew.exe
c:/djgpp/lib/crt0.o -Lc:/rsxntdj/lib -Lc:/djgpp/lib -Lc:/djgpp/lib -Lc:/djgp
p/lib/gcc-lib/djgpp/2.953 -Lc:/djgpp/bin -Lc:/djgpp/lib
c:/djgpp/tmp\cczixC0F.o c:/djgpp/tmp\ccDV5H80.o c:/djgpp/tmp\ccTa1I4R.o
c:/djgpp/tmp\ccG0fxNy.o -Tdjgpp.djl -lgcc -lc -lgcc
c:/djgpp/tmp\ccG0fxNy.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\ccG0fxNy.o: In function `psi':
dcdflib.c:8593: undefined reference to `ipmpar'
c:/djgpp/tmp\ccG0fxNy.o: In function `spmpar':
dcdflib.c:8928: undefined reference to `ipmpar'
c:/djgpp/tmp\ccG0fxNy.o:dcdflib.c:8929: more undefined references to
`ipmpar' follow

C:\FFOP\src\OneUnit>
End of dump:


- Raw text -


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