egcs-1.1.2 template explicit instantiation problems (Was: wstring ...)

Alexandre Oliva oliva@lsd.ic.unicamp.br
Fri Feb 11 05:37:00 GMT 2000


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}}



More information about the Gcc mailing list