g++ implicit template instantiation problem on V5.1

From: Shiva Gowda (shivrajang@yahoo.com)
Date: Mon Sep 22 2003 - 15:32:43 EDT


Hello Gurus,

It seems on V5.1 there is no implicit template instantiation.
Our code has tons of definations as shown in example. How could
fix this problem?

Thank you!

//Shiva

$ cat boo.cc
#include <iostream>
#include <string>

using namespace std;

int
main(int argc, char *argv[])
{
        string foo="bla bla";
        cout << foo << endl;
        return(0);
}
$

$ g++ --version
g++ (GCC) 3.3.1
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ sizer -v
Compaq Tru64 UNIX V5.1 (Rev. 732); Fri Jul 11 14:36:24 MEST 2003
$ g++ -o boo boo.cc
std::allocator<char>::allocator[in-charge]()
collect2: ld returned 1 exit status
$

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:36 EDT