static data member problem

Mark E. snowball3@usa.net
Thu Sep 24 15:03:00 GMT 1998


> > Note that you may get it working with -frepo.
 
Here's the output of my sample code using the -frepo flag (sorry in 
advance for the formatting). You'll note that nowhere does it 
mention about reading test2.rpo even though it's generated. For 
some reason, test2.rpo isn't being read.

Is this likely an egcs issue or a DJGPP issue?

C:\DJGPP\PROJECTS\TEST2>gcc -v -frepo -c -o test2.o test2.cpp
Reading specs from c:/djgpp/lib/gcc-lib/djgpp/egcs-291.57/specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
 c:/djgpp/lib/gcc-lib/djgpp/egcs-291.57/cpp.exe -lang-c++ -v -undef -
D__GNUC__=2
 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -
Dunix -Di386 -DGO32 -DMSDOS -DD
JGPP=2 -DDJGPP_MINOR=2 -D__EXCEPTIONS -D__unix__ -
D__i386__ -D__GO32__ -D__MSDOS
__ -D__DJGPP__=2 -D__DJGPP_MINOR__=2 -
D__EXCEPTIONS -D__unix -D__i386 -D__GO32 -
D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=2 -
Asystem(unix) -Asystem(msdos) -Acpu(i386
) -Amachine(i386) -D__EXCEPTIONS -Ic:/djgpp/include/custom/ 
test2.cpp c:/djgpp/t
mp/cccTZk8e.ii
GNU CPP version egcs-2.91.57 19980901 (egcs-1.1 release) 
(80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 c:/djgpp/include/custom
 c:/djgpp/lang/cxx
 c:/djgpp/lib/gcc-lib/djgpp/egcs-291.57/include
 c:/djgpp/include
End of search list.
 c:/djgpp/lib/gcc-lib/djgpp/egcs-291.57/cc1plus.exe 
c:/djgpp/tmp/cccTZk8e.ii -qu
iet -dumpbase test2.cc -version -frepo -o c:/djgpp/tmp/cciFDCQQ.s
GNU C++ version egcs-2.91.57 19980901 (egcs-1.1 release) 
(djgpp) compiled by GNU
 C version egcs-2.91.57 19980901 (egcs-1.1 release).
 c:/djgpp/bin/as.exe -o test2.o c:/djgpp/tmp/cciFDCQQ.s

C:\DJGPP\PROJECTS\TEST2>gcc -v -frepo -o test2.exe test2.o
Reading specs from c:/djgpp/lib/gcc-lib/djgpp/egcs-291.57/specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
 c:/djgpp/lib/gcc-lib/djgpp/egcs-291.57/collect2.exe -o test2.exe 
c:/djgpp/lib/c
rt0.o -Lc:/djgpp/lib/gcc-lib/djgpp/egcs-291.57 -Lc:/djgpp/bin -
Lc:/djgpp/lib tes
t2.o -lgcc -lc -lgcc -Tdjgpp.djl
test2.o(.text+0x27):test2.cpp: undefined reference to 
`container<char>::null_str
_c'
collect2: ld terminated with signal 1 [Interrupt X01]


-- 
Mark E. snowball3@usa.net
http://members.xoom.com/snowball3/



More information about the Gcc-bugs mailing list