Static Template Data Members on AIX 4.3.2

David Edelsohn
Mon Oct 18 19:48:00 GMT 1999

>>>>> Mike Pyle writes:

Mike> We are running into problems trying to link a program that uses templates
Mike> with static data members. The application compiles fine but we are getting
Mike> undefined symbol errors for the static data members when trying to link. The
Mike> specs for the target platform: from
Mike> /usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.2.0/2.95.1/specs gcc version
Mike> 2.95.1 19990816 (release).

Mike> This same code compiles and builds fine using gcc 2.95.1 on Solaris 2.7.

Mike> The templates are from the SGI STL 3.2 implementation (specifically the
Mike> statics in __default_alloc_template).

Mike> Does the AIX implementation support static template data members? If so, is
Mike> there something extra I need to do or is this a bug?

	GCC on AIX should support static template data members.  This
could be another case where G++'s mechanism for implementing a feature
makes assumptions about the operations of the linker which do not mesh
well with AIX.  Without a complete bug report, it is hard to say anything
more or give any advice.

Regards, David
David Edelsohn                                      T.J. Watson Research Center                                  P.O. Box 218
+1 914 945 4364 (TL 862)                            Yorktown Heights, NY 10598

More information about the Gcc-bugs mailing list