www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/25/20:56:14

Sender: nate AT cartsys DOT com
Message-ID: <360C3A58.648EE409@cartsys.com>
Date: Fri, 25 Sep 1998 17:50:32 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
MIME-Version: 1.0
To: sl AT psycode DOT com
CC: djgpp AT delorie DOT com
Subject: Re: GCC/EGCS bug
References: <iCdMCj1ZQ5j2-pn2-Gy4d2sdGdp2y AT portC13 DOT Generation DOT NET>

sl AT psycode DOT com DOT REMOVE_THIS wrote:
> 
> Hi,
> 
>         I have noticed that when using GCC or EGCS (someone else tested EGCS
> for me off linux), if you use templates with your classes at all, you
> cannot split up your protypes and implementation.. Unless both are in
> the same file, GCC/EGCS will complain the functions (defined in the
> cc file) are undefined .. This is when compling using RHIDE with
> "#include "range."" and "range.cc" in my project file.. I don't have
> problems of this sort (with RHIDE) in any other instance,

I don't use C++, and I have only a hazy idea what templates are, so this
answer may be totally bogus.  However, the "Template Instantiation" node
of the GCC manual seems to discuss something like this.  Have you read
it?
-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019