Mail Archives: djgpp/1998/09/25/20:56:14
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 -