🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41725

templates help

#41725
From: borkner
Date: Tue, 20 Feb 1996 00:00
29 lines
1287 bytes
I am having some problems with the use 
of templates 

I am in the posession of g++'s Version 2.6 Handbook.
In this handbook there are 3 methodes depicted how
to include templates.

I have tried one methode using the #pragma interface

that seems to work fine for small examples, once
i try to translate my big project (which works splendidly
under OS2) I allways get a heap of unresolved externals

I tried allmost all combination of #pragma interface in 
conjunction with #pragma implementation but nothing seem to
work

I then tried to use the 3rd methode which  is described in 
the Handbook but even though the author tells me that this
is the most perfect one, (one has to use the -fno-implicit-templates
and instantiate all used classes statically) that one does
not even work with my simple program.

I am using g++ Version 2.8 can anyone tell me if there is
a newer more apropriate methode to utilize templates???

Thanks 

Olaf
Technical Details
Message-ID: <4gdks0$2478@news-s01.ny.us.ibm.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,d458357da03b9859,start
X-Google-Attributes: gid11318c,public
From: borkner@ibm.net
Subject: templates help
Date: 1996/02/20
Message-ID: <4gdks0$2478@news-s01.ny.us.ibm.net>
X-Deja-AN: 140317277
reply-to: borkner@ibm.net
newsgroups: gnu.gcc.help