From: ganesh subramonian <gun_raj@yahoo.com>
To: gcc-help@gcc.gnu.org
Subject: help with using -frepo
Date: Sat, 08 Dec 2007 06:20:00 -0000 [thread overview]
Message-ID: <840571.46978.qm@web52406.mail.re2.yahoo.com> (raw)
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
reply other threads:[~2007-12-08 6:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=840571.46978.qm@web52406.mail.re2.yahoo.com \
--to=gun_raj@yahoo.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).