* help with using -frepo
@ 2007-12-08 6:20 ganesh subramonian
0 siblings, 0 replies; only message in thread
From: ganesh subramonian @ 2007-12-08 6:20 UTC (permalink / raw)
To: gcc-help
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-12-08 6:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-08 6:20 help with using -frepo ganesh subramonian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).