This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -frepo not working?
- To: Chad Gatesman <chadg at redrose dot net>
- Subject: Re: -frepo not working?
- From: Horst von Brand <vonbrand at inf dot utfsm dot cl>
- Date: Wed, 16 Dec 1998 18:08:41 -0300
- cc: Alexandre Oliva <oliva at dcc dot unicamp dot br>, egcs at cygnus dot com, egcs-bugs at cygnus dot com
Chad Gatesman <chadg@redrose.net> said:
> This can be reproduced very easily. I will show you an example using
> egcs-1.1.1:
>
> _________________________________
>
> // repo-fail.cc
> #include <vector>
>
> void main()
> {
> vector<int> v;
>
> v.push_back(1);
> }
>
> _________________________________
>
>
> chad:/tmp> g++ -c -frepo repo-fail.cc
> chad:/tmp> g++ -o repo-fail repo-fail.o
> repo-fail.o: In function `vector<int, __default_alloc_template<false, 0>
> >::push_back(int const &)':
> repo-fail.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
egcs-19981213 (sparc-sun-solaris2.5.1) gives:
vonbrand@pincoya$ c++ -c -frepo repo.cc
vonbrand@pincoya$ c++ -o repo repo.o
collect: recompiling repo.cc
collect: relinking
--
Dr. Horst H. von Brand mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513