This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Regression? HPUX/OS X linker problems (was: Static variables in templates}
- From: Ravikiran Rajagopal <ravi at ee dot eng dot ohio-state dot edu>
- To: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 5 Jun 2002 14:51:54 -0400
- Subject: Re: Regression? HPUX/OS X linker problems (was: Static variables in templates}
- References: <200206040329.g543Tern012555@hiauly1.hia.nrc.ca>
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