This is the mail archive of the gcc@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]

Re: -frepo not working?


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


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