Mail Archives: djgpp/2001/06/14/12:30:14
"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 -