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

Link failure with 1.0.1 release and -frepo on Linux 2.0.30


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


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