🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.linux
Article #1089

Templates

#1089
From: Steven D. Nakhla
Date: Wed, 07 Apr 1999 00:00
12 lines
1844 bytes
I'm trying to design template classes in C++ (under Linux and Solaris) using
the gcc compiler, but I'm running into trouble.  It seems that the template
functions must be written
within the header (.h) file.  Whenever they are written in the .cpp file I
get errors about them not being there.  Is there any way around this?  Can I
send a flag to the compiler or anything to get them implemented correctly?


Please reply to:

Steve Nakhla
nakhla@bcpl.net
Technical Details
Message-ID: <ShVO2.260$G4.285045@news.abs.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: f5392,eaa6e2f181a1fe60,start
X-Google-Attributes: gidf5392,public
X-Google-Thread: 10c696,eaa6e2f181a1fe60,start
X-Google-Attributes: gid10c696,public
X-Google-Thread: f8c9b,eaa6e2f181a1fe60,start
X-Google-Attributes: gidf8c9b,public
X-Google-Thread: faa64,eaa6e2f181a1fe60,start
X-Google-Attributes: gidfaa64,public
X-Google-Thread: fc89c,eaa6e2f181a1fe60,start
X-Google-Attributes: gidfc89c,public
X-Google-Thread: 10ba33,eaa6e2f181a1fe60,start
X-Google-Attributes: gid10ba33,public
X-Google-Thread: 100c5f,eaa6e2f181a1fe60,start
X-Google-Attributes: gid100c5f,public
X-Google-Thread: 109fba,eaa6e2f181a1fe60,start
X-Google-Attributes: gid109fba,public
From: "Steven D. Nakhla" <nakhla@bcpl.net>
Subject: Templates
Date: 1999/04/07
Message-ID: <ShVO2.260$G4.285045@news.abs.net>
X-Deja-AN: 463891481
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
X-Complaints-To: abuse@bcpl.net
X-Trace: news.abs.net 923541746 204.255.212.234 (Wed, 07 Apr 1999 23:22:26 EDT)
X-MSMail-Priority: Normal
Reply-To: "Steven D. Nakhla" <nakhla@hotmail.com>
NNTP-Posting-Date: Wed, 07 Apr 1999 23:22:26 EDT
Newsgroups: alt.linux,alt.os.linux,comp.lang.c++,comp.os.linux.development.apps,comp.os.linux.development.system,comp.unix.programmer,comp.unix.questions,gnu.g++.help,gnu.gcc.help