This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Link failure with 1.0.1 release and -frepo on Linux 2.0.30
- To: egcs-bugs at cygnus dot com
- Subject: Link failure with 1.0.1 release and -frepo on Linux 2.0.30
- From: Rick Campbell <campbell at cyberpass dot net>
- Date: Fri, 13 Feb 1998 10:16:10 -0500
- Organization: Lehman Brothers Inc.
- Reply-To: Rick Campbell <campbell at cyberpass dot net>
Code that links when compiled and linked in one step, fails to do so
when compiled and linked seperately.
Rick
#include <vector>
int main ()
{
vector<double> vod (10);
return 0;
}
$ g++ --version
egcs-2.90.23 980102 (egcs-1.0.1 release)
$ g++ -g -o bug bug.cc
$ g++ -frepo -g -c bug.cc
$ g++ -frepo -o bug bug.o
bug.o:/usr/misc/packages/egcs/1.0.1/include/g++/stl_alloc.h:158:
undefined reference to `double * fill_n<double *, unsigned int,
double>(double *, unsigned int, double const &)'
collect2: ld returned 1 exit status
PGP signature