Article View: comp.unix.cray
Article #319Re: C++/g++ on the Cray T3D
From: Karsten Baensch
Date: Tue, 13 Feb 1996 00:00
Date: Tue, 13 Feb 1996 00:00
40 lines
2216 bytes
2216 bytes
thimm@julia.physik.fu-berlin.de (Axel Thimm) writes:
>Hello,
> I am trying to get some C++ code running on a T3D. The native
>cfront-like compiler does not support some template features, like
> template< class X > class B : public X { ... } ;
> My code uses this a lot, so I would prefer to not change the code,
>but find another solution.
> The new C++ programming environment is said to only work with the
>T3E.
> As the T3D consists mainly of Alpha processors, I hope that there
>might be a working gcc/g++ for it. I was told that there has been such
>an attempt in the past, which had some bugs in it.
> Please email me any informations, that you may have about it.
> Many thanks in advance,
> Axel Thimm.
If you don't find a suitable gcc/g++ for the T3D, you can solve your
template problem as follows:
Look at the generic container class library of GNU's
(~gnu/lib/g++-include/gen)
That was designed when real C++-templates were not available yet.
To generate real classes from that kind of container templates there is a
tool 'genclass' (shell script) available. This does its work for function
templates too.
So use the same syntax in your code. (The syntax of existing template code
could easily be adapted via simple perl or sed script.) Then use the
genclass tool to generate your classes.
Karsten
--
( Email: Karsten.Baensch@hrz.tu-chemnitz.de (
) WWW: http://www.tu-chemnitz.de/~kba/baensch.html )
( Phone: (+49-) 0371/531-1252 (
) Mail: Technical University, Computing Services, 09107 Chemnitz, Germany )
Technical Details
Message-ID:
<4fplq6$q6q@pyrrhus-f.hrz.tu-chemnitz.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<4fnvfc$opb@fu-berlin.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10ba33,415eadef9ecc4097 X-Google-Attributes: gid10ba33,public X-Google-Thread: 10eb55,415eadef9ecc4097 X-Google-Attributes: gid10eb55,public From: kba@hrz.tu-chemnitz.de (Karsten Baensch) Subject: Re: C++/g++ on the Cray T3D Date: 1996/02/13 Message-ID: <4fplq6$q6q@pyrrhus-f.hrz.tu-chemnitz.de> X-Deja-AN: 139167695 distribution: inet references: <4fnvfc$opb@fu-berlin.de> organization: University of Technology Chemnitz, FRG newsgroups: comp.unix.cray,gnu.g++.help