This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
wrong files in libstdc++.a?
- To: libstdc++@sourceware.cygnus.com
- Subject: wrong files in libstdc++.a?
- From: "Mark E." <snowball3@usa.net>
- Date: Wed, 14 Apr 1999 20:07:31 -0400
When I tried to compile/link/execute 21compare.cc from the testsuite
using the libstdc++.a I compiled for DJGPP, but the linker complained
about many undefined references. The ones involving locales and
vector I expected, but it also reported undefined references to the _IO_*
functions in libio that I wasn't expecting. Here's a sample:
../build/src/.libs/libstdcxx.a(basic_file.o)(.text+0x27):basic_file.cc:
undefined reference to `_IO_file_init'
../build/src/.libs/libstdcxx.a(basic_file.o)(.text+0x60):basic_file.cc:
undefined reference to `_IO_do_write'
../build/src/.libs/libstdcxx.a(basic_file.o)(.text+0x169):basic_file.cc:
undefined reference to `_IO_link_in'
I used 'nm' to try and find those symbols in libstdc++.a, but they weren't
even listed as undefined. A listing of the files in libstdc++.a generated
by 'ar' listed below reveals that at some point .lo files are being stored
instead of the .o files. This doesn't seem right to me. Shouldn't they all
be .o files in my target?
complex.o
complexf.o
complexl.o
stdexcept.o
ios.o
stdstreams.o
locale.o
localename.o
locale-inst.o
stlinst.o
misc-inst.o
basic_file.o
stringADDCS.o
stringADDPS.o
stringADDSC.o
stringADDSP.o
stringADDSS.o
stringBIST.o
stringBOST.o
stringCHTR.o
stringEQPS.o
stringEQSP.o
stringEQSS.o
stringEXTRA.o
stringGEPS.o
stringGESP.o
stringGESS.o
stringGETLI.o
stringGTPS.o
stringGTSP.o
stringGTSS.o
stringINSER.o
stringLEPS.o
stringLESP.o
stringLESS.o
stringLTPS.o
stringLTSP.o
stringLTSS.o
stringMAIN.o
stringNEPS.o
stringNESP.o
stringNESS.o
stringSCOPY.o
wstringADDCS.o
wstringADDPS.o
wstringADDSC.o
wstringADDSP.o
wstringADDSS.o
wstringBIST.o
wstringBOST.o
wstringCHTR.o
wstringEQPS.o
wstringEQSP.o
wstringEQSS.o
wstringEXTRA.o
wstringGEPS.o
wstringGESP.o
wstringGESS.o
wstringGETLI.o
wstringGTPS.o
wstringGTSP.o
wstringGTSS.o
wstringINSER.o
wstringLEPS.o
wstringLESP.o
wstringLESS.o
wstringLTPS.o
wstringLTSP.o
wstringLTSS.o
wstringMAIN.o
wstringNEPS.o
wstringNESP.o
wstringNESS.o
wstringSCOPY.o
carg.lo
cargf.lo
ccos.lo
ccosf.lo
ccosh.lo
ccoshf.lo
cexp.lo
cexpf.lo
clog.lo
clog10.lo
clog10f.lo
clogf.lo
cpow.lo
cpowf.lo
csin.lo
csinf.lo
csinh.lo
csinhf.lo
csqrt.lo
csqrtf.lo
ctan.lo
ctanf.lo
ctanh.lo
ctanhf.lo
mycabs.lo
mycabsf.lo
signbit.lo
signbitf.lo
dummy.lo
wcslen.lo
wmemchr.lo
wmemcmp.lo
wmemcpy.lo
wmemmove.lo
wmemset.lo
cleanup.lo
filedoalloc.lo
fileops.lo
floatconv.lo
genops.lo
iofclose.lo
iofeof.lo
ioferror.lo
iofgetpos.lo
iofread.lo
iofscanf.lo
iofsetpos.lo
iogetc.lo
iogetdelim.lo
iogetline.lo
ioignore.lo
iopadn.lo
iopopen.lo
ioprims.lo
ioprintf.lo
ioputc.lo
ioseekoff.lo
ioseekpos.lo
iostrerror.lo
ioungetc.lo
iovfprintf.lo
iovfscanf.lo
outfloat.lo
peekc.lo
stdfiles.lo
strops.lo
---
Mark Elbrecht, snowball3@usa.net
http://snowball.digitalspace.net/