This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-1.1.2 template explicit instantiation problems (Was: wstring ...)
- To: Steinar Bang <sb at metis dot no>
- Subject: Re: egcs-1.1.2 template explicit instantiation problems (Was: wstring ...)
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 11 Feb 2000 11:36:29 -0200
- Cc: gcc at gcc dot gnu dot org
- References: <whd7q89l2s.fsf@viffer.metis.no> <wh900sniox.fsf@viffer.metis.no>
On Feb 11, 2000, Steinar Bang <sb@metis.no> wrote:
> wchar_t* string_char_traits<wchar_t>::move(wchar_t *, wchar_t const *, unsigned int);
> /home/sb/2x/lib/libmetis_tools.so: undefined reference to `string_char_traits<wchar_t>::move(wchar_t *, wchar_t const *, unsigned int)'
> Presumably there is something wrong with my explicit instantiation
> syntax?
Yup. Explicit instantiations must be preceded by the keyword
`template':
template wchar_t* string_char_traits<wchar_t>::move(wchar_t *, wchar_t const *, unsigned int);
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/ IC-Unicamp, Bra[sz]il
aoliva@{redhat, cygnus}.com Cygnus Solutions, a Red Hat company
aoliva@{acm, computer}.org Free Software Developer and Evangelist
oliva@{lsd.ic.unicamp.br, {gnu, kaffe, samba}.org, guarana.{org, com}}