This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: SCO experiences


>>>>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]