Are you using the -fno-implicit-templates switch of g++, or any other switch related to templates?stegemma wrote:clsString use templates indirectly (in other classes) but all the template code is in headers. Maybe i can check if somewhere there are template code defined outside the headers.Sven Schüle wrote:...
Does clsString use templates? That would explain it. Enabling implicit template instantiation through a compiler switch would be an alternative solution in that case.
Sven
In general, I am not 100% sure whether the behaviour you have described is really related to templates, but at least it sounds as if it might be the case.
Is clsString derived from a specialized class template? E.g.
Code: Select all
class clsString : public myTemplateClass<char>;Code: Select all
clsString sDummy;Sven