Original-Message-ID: <14590.8851.229295.681640@data.ecora.com> Date: Wed, 19 Apr 2000 17:18:11 -0400 (EDT) Here is one. Please notice that subsequent invocations of "c++ t.o" generate different error messages. Tudor RedHat Linux 6.2, Reading specs from /home/tudor/opt/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs gcc version 2.95.2 19991024 (release) stack.cc: #include <stack> int main() { stack<int> x; } [tudor@data]:~ $ c++ -frepo -c t.cc [tudor@data]:~ $ c++ t.o collect: recompiling t.cc collect: relinking t.o: In function `deque<int, allocator<int>, 0>::~deque(void)': t.o(.text+0x51): undefined reference to `_Deque_base<int, allocator<int>, 0>::~_Deque_base(void)' t.o: In function `_Deque_base<int, allocator<int>, 0>::_Deque_base(allocator<int> const &, unsigned int)': t.o(.text+0xa7): undefined reference to `_Deque_base<int, allocator<int>, 0>::_M_initialize_map(unsigned int)' t.o: In function `deque<int, allocator<int>, 0>::deque(allocator<int> const &)': t.o(.text+0xf7): undefined reference to `_Deque_base<int, allocator<int>, 0>::~_Deque_base(void)' collect2: ld returned 1 exit status [tudor@data]:~ $ c++ t.o collect: recompiling t.cc collect: relinking t.o: In function `_Deque_base<int, allocator<int>, 0>::~_Deque_base(void)': t.o(.text+0x83): undefined reference to `_Deque_base<int, allocator<int>, 0>::_M_destroy_nodes(int **, int **)' t.o: In function `_Deque_base<int, allocator<int>, 0>::_M_initialize_map(unsigned int)': t.o(.text+0x169): undefined reference to `_Deque_base<int, allocator<int>, 0>::_M_create_nodes(int **, int **)' collect2: ld returned 1 exit status [tudor@data]:~ $ c++ t.o collect: recompiling t.cc collect: relinking t.o: In function `deque<int, allocator<int>, 0>::~deque(void)': t.o(.gnu.linkonce.t._._t5deque3ZiZt9allocator1ZiUi0+0x51): undefined reference to `_Deque_base<int, allocator<int>, 0>::~_Deque_base(void)' t.o: In function `deque<int, allocator<int>, 0>::deque(allocator<int> const &)': t.o(.deque<int, allocator<int>, 0>::gnu.linkonce.t.(allocator<int> const &)+0x37): undefined reference to `_Deque_base<int, allocator<int>, 0>::~_Deque_base(void)' t.o: In function `_Deque_base<int, allocator<int>, 0>::_Deque_base(allocator<int> const &, unsigned int)': t.o(._Deque_base<int, allocator<int>, 0>::gnu.linkonce.t.(allocator<int> const &, unsigned int)+0x43): undefined reference to `_Deque_base<int, allocator<int>, 0>::_M_initialize_map(unsigned int)' collect2: ld returned 1 exit status [tudor@data]:~ $ c++ t.o collect: recompiling t.cc collect: relinking t.o: In function `_Deque_base<int, allocator<int>, 0>::~_Deque_base(void)': t.o(.text+0x19b): undefined reference to `_Deque_base<int, allocator<int>, 0>::_M_destroy_nodes(int **, int **)' t.o: In function `_Deque_base<int, allocator<int>, 0>::_M_initialize_map(unsigned int)': t.o(.text+0x285): undefined reference to `_Deque_base<int, allocator<int>, 0>::_M_create_nodes(int **, int **)' collect2: ld returned 1 exit status [tudor@data]:~ $ Release: 2.95.2
State-Changed-From-To: analyzed->closed State-Changed-Why: Compiles and links just fine with gcc version 3.0 20010218 (prerelease) when updated to use std::stack.
From: jdennett@gcc.gnu.org To: gcc-gnats@gcc.gnu.org, martin@loewis.home.cs.tu-berlin.de, nobody@gcc.gnu.org, tudor.hulubei@ecora.com Cc: Subject: Re: c++/176 Date: 18 Feb 2001 19:44:13 -0000 Synopsis: -frepo not working State-Changed-From-To: analyzed->closed State-Changed-By: jdennett State-Changed-When: Sun Feb 18 11:44:13 2001 State-Changed-Why: Compiles and links just fine with gcc version 3.0 20010218 (prerelease) when updated to use std::stack. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=176&database=gcc