Regression? HPUX/OS X linker problems (was: Static variables in templates}

Ravikiran Rajagopal ravi@ee.eng.ohio-state.edu
Wed Jun 5 12:01:00 GMT 2002


Amazing. That helps a lot, in fact. Do we need to do the same for 64-bit 
binaries as well? I am planning to build a 64-bit gcc-3.1 on HPUX as I am 
more familiar with ELF rather than HP's 32-bit format.

Thank you very much for your help. I will probably come back again in a few 
days with questions about the 64-bit dlopen() equivalent on HPUX 11.

Ravi

On Monday 03 June 2002 11:29 pm, you wrote:
> I know very little about c++ but I believe that explicit template
> instantiation is needed on systems that use comdat linkage (e.g., hpux).
> The program will link and run ok if you add
>
>   template class foo<int>;
>
> after the template definition.  Hope this helps.
>
> Dave



More information about the Gcc mailing list