c++/7934: [HP UX] definition of static member for template class missing in obj file
danglin@gcc.gnu.org
danglin@gcc.gnu.org
Wed Dec 4 13:57:00 GMT 2002
Synopsis: [HP UX] definition of static member for template class missing in obj file
Responsible-Changed-From-To: unassigned->danglin
Responsible-Changed-By: danglin
Responsible-Changed-When: Wed Dec 4 13:57:17 2002
Responsible-Changed-Why:
Assigned.
State-Changed-From-To: open->closed
State-Changed-By: danglin
State-Changed-When: Wed Dec 4 13:57:17 2002
State-Changed-Why:
[HP-UX] 32-bit port doesn't support weak symbols and as a
result template classes require explicit instantiation.
The example will compile and run correctly if you add
template class A<int>;
For other examples, look at the instantiations in
libstdc++-v3/src/*-inst.cc.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7934
More information about the Gcc-prs
mailing list