This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

possible bug in g++



Is this a bug in g++ version 2.96?  (yes I know about the version 2.96 scandal, that's why I'm asking)


the compile command:

c++ -O2 -march=i686 -o glade-- Cxx.o Cxx_Fileset.o Cxx_Fs_Signal.o Naming.o Tag.o TagStream.o Widget.o const_contained_iterator.o glade--.o getopt.o getopt1.o strsep.o WidgetFile.o writers/libwriters.o SourceWriter/libSourceWriter.a
const_contained_iterator.o: In function `Widget::const_contained_iterator::dive(void)':
const_contained_iterator.o(.text+0x520): undefined reference to `Widget::const_contained_iterator::type'
const_contained_iterator.o: In function `Widget::const_contained_iterator::operator++(void)':
const_contained_iterator.o(.text+0x2fae): undefined reference to `Widget::const_contained_iterator::type'
collect2: ld returned 1 exit status
make[3]: *** [glade--] Error 1


checking for missing symbol (in build directory):

$ nm -C const_contained_iterator.o | grep type
         U Widget::const_contained_iterator::type
         U Widget::subwidgettype(Widget const &) const


It seems that the "undefined symbol" actually exists in the object file, and the object file is clearly linked against.

Please CC me b/c I'm not on the list.
Thanks,
-D

(PS.  RedHat 7.0 on Intel PII)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]