How to get template library code to instantiate

Mark Schaefer mschaefer@dsai.com
Sat Apr 11 09:32:00 GMT 1998


	Egcs Team,


    We have template library code that we use for our executables.  We
are using the SGI (Prodev) compiler for the main code, which creates the
ii_files directory for instantiations.  I believe this is the cfront
model.  Compiling under Linux, the template code is not being created
and thus there are a lot of "not defined" errors in the link stage.

    Actually, I also got the same errors if I compile with -ptnone -prelink on
SGI, which is now the "recommended" (ptnone instantiates no templates, and
prelink supposedly goes through the object file and instantiates any necessary
template code)

    How should I get the linker to instantiate the proper templates?  I
remember someone mentioning a trick that could be pulled with the collect2
phase.

    I'm using egcs-1.0.2, and binutils 2.8.1.0.23 (I think it's the glibc1
version)

    Also, is there a FAQ for converting to glibc2?

--
Mark Schaefer



More information about the Gcc mailing list