This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]