help with using -frepo

ganesh subramonian gun_raj@yahoo.com
Sat Dec 8 06:20:00 GMT 2007


hi
can someone tell me how to use the -frepo option to generate and use a template repo
i have this simple program:

#include<iostream>
using namespace std;

template<class T>
T add(T a,T b)
{
    cout << "sum=" << (a+b) << endl;
}

int main(void) {
    add(1,2);
    add(1.1,2.2);
    return 0;
}

what do i need to add to this program to be able to use the -frepo option?
is this repo supposed to get generated at compile time or link time?
nothing much happened when i did a "g++ -c -frepo sum.cpp" with the above file...i am using gcc-4.1.2...

can some please tell me how to do this?

thanks
ganesh






      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs



More information about the Gcc-help mailing list