This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
possible bug in g++
- To: gcc-bugs at gcc dot gnu dot org
- Subject: possible bug in g++
- From: D-Man <dsh8290 at rit dot edu>
- Date: Wed, 15 Nov 2000 03:15:25 -0500
- References: <20001115011547.A12842@dman.rh.rit.edu>
- Reply-To: dsh8290 at rit dot edu
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)