Compiling templates ? -frepo, etc.
andy@softbookpress.com
andy@softbookpress.com
Mon Apr 9 06:45:00 GMT 2001
http://sunsite.ualberta.ca/Documentation/Gnu/gcc-2.95.2/html_mono/gcc.html
Look for "5.5 Where's the Template?"
Andy
Andy
>Hello all,
>
>Could anyone tell me how to correctly use template compilation option
>-frepo -fno-implicit-templates, etc ... to have only one instanciation
>of template ?
>
>I've got a template define in <app-excp.h>
>
>template <class Type1, class Type2>
> ExcpManip
> Param( const Type1& , const Type2& )
> {
> ...
> }
>
>And I use it in almost all other C++ Source file. As a
>basic_logbuf<CharT,char_traits<CharT> >
>and a basic_logstream<CharT,chart_traits<CharT> >.
>
>How to instanciate explitly the template then GCC to be able to find
>template when linking ?
>
>I compile with -frepo, but it's seem that I don't understand correctly.
>
>Thanks for all
More information about the Gcc-help
mailing list