This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: template function compiling problem (alphaev5-linux)
- To: Alexandre Oliva <oliva at dcc dot unicamp dot br>, Todd Vierling <tv at pobox dot com>
- Subject: Re: template function compiling problem (alphaev5-linux)
- From: Toshinao Ishii <ici at qua dot crl dot melco dot co dot jp>
- Date: Mon, 28 Sep 1998 13:23:14 +0900
- Cc: egcs at cygnus dot com
- References: <199809251232.VAA09483@rothko.qua.srl.melco.co.jp><orsohffqsm.fsf@araguaia.dcc.unicamp.br>
- Reply-To: ici at qua dot crl dot melco dot co dot jp
Hi.
Todd Vierling wrote:
: This function is recursive. It will call itself because you are doing `os
This was my careless mistake. Sorry for occupying traffic for such a thing.
Alexandre Oliva wrote:
: This won't work. Even when you use -frepo, the definition of a
: template *must* be visible in every translation unit that uses that
: template. This can only be worked around if you explicitly
Is the implementation "invisible" even if poi02.C is included in main02.C ?
----------------------------------
// main02.C
#include "poi02.H"
#include "poi02.C"
int main()
{
C<double> tcd;
tcd = 3.14;
cout << tcd << endl;
}
----------------------------------
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
石井俊直 Toshinao Ishii
Advanced Technology R&D Center (ATC) 三菱電機(株)
Mitsubishi Electric Corporation 先端技術総合研究所
email: ici@qua.crl.melco.co.jp (NeXTMail/MIME Welcome)
fax: +81-6-497-7288