This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Template Inheritance and Instantiation -- A Simpler Hashtable Iterator
- To: egcs-bugs at cygnus dot com, "Howe, Zack" <zhowe at usa dot net>, "Howe, Zack" <zhowe at usa dot net>, egcs at cygnus dot com
- Subject: Re: Template Inheritance and Instantiation -- A Simpler Hashtable Iterator
- From: Chad Gatesman <chadg at redrose dot net>
- Date: Fri, 04 Sep 1998 18:06:19 -0400
- CC: "Waltermire, Dave" <dwalt at redrose dot net>, "Howe, Zack" <zhowe at usa dot net>, "Howe, Zack" <zhowe at usa dot net>, "Howe, Zack" <zhowe at usa dot net>
- Disposition-Notification-To: Chad Gatesman <chadg@redrose.net>
- Organization: Bristol Technology
- References: <35EF4F41.232C77BC@redrose.net>
It turns out that I can't use -frepo at all with egcs-1.1a.
Even the simplest samples don't link:
-- t.cc
#include <vector>
void main()
{
vector<int> Vector;
Vector.push_back(1);
}
chad:/tmp> g++ -c -frepo t.cc
chad:/tmp> g++ -frepo -o t t.o
t.o: In function `vector<int, __default_alloc_template<false, 0>
>::push_back(int const &)':
t.o(.vector<int, __default_alloc_template<0, 0>
>::gnu.linkonce.t.push_back(int const &)+0x35): undefined reference to
`vector<int, __default_alloc_template<false, 0> >::insert_aux(int *, int
const &)'
collect2: ld returned 1 exit status
chad:/tmp> g++ -c -frepo t.cc
chad:/tmp> g++ -frepo -o t t.o
t.o: In function `vector<int, __default_alloc_template<false, 0>
>::push_back(int const &)':
t.o(.vector<int, __default_alloc_template<0, 0>
>::gnu.linkonce.t.push_back(int const &)+0x35): undefined reference to
`vector<int, __default_alloc_template<false, 0> >::insert_aux(int *, int
const &)'
collect2: ld returned 1 exit status
Was this a regression that was fixed in egcs-1.1b (I'm currently
downloading it (no patch from 1.1a to 1.1b?))? Or is there something else
I have to do now with the newer egcs to support -frepo?
--
Chad Gatesman Home: 203.730.1389
Software Engineer Work: 203.798.1007 x144
Bristol Technology http://www.bristol.com/