SCO experiences
Jason Merrill
jason@cygnus.com
Fri Oct 3 08:11:00 GMT 1997
>>>>> Bill Walker <bw@student.ecok.edu> writes:
> Experience 4:
> Under g++, I found something I think should work, but doesn't under any
> compiler I have ever found, including this one.
> Suppose I wish to create a template, say of an array:
> template.h <--- contains the template class definition
> template.cc <-- contains "generic" code
> main.cc <-- "fills in the blank type" and instantiates the template
> main.cc #includes template.h, and template.cc #includes template.h
> The compile will fail. I really don't believe it should.
g++ doesn't support separate compilation of templates.
Jason
More information about the Gcc
mailing list