help with using -frepo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux