Compiling templates ? -frepo, etc.
Laurent Marzullo
laurent.marzullo@be.sema.com
Mon Apr 9 02:36:00 GMT 2001
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