Re: [eigen] on extern template instanciation |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
On Saturday 14 June 2008 12:23:59 Gael Guennebaud wrote: > what about the following: we give two levels to > EIGEN_EXTERN_INSTANTIATIONS. so: > if EIGEN_EXTERN_INSTANTIATIONS==1 then we only declare the extern > templates if EIGEN_EXTERN_INSTANTIATIONS==2 then we declare the extern > templates + hide the heavy code using a pair of #if > EIGEN_EXTERN_INSTANTIATIONS<2 / #endif > > that's a bit complicated for the user: > - if he does not need -finline-functions then define it to 1 > - otherwise define it to 2 and take care when you use non-common types > (i.e re-define EIGEN_EXTERN_INSTANTIATIONS=1 before including eigen > headers) I think that solution is a good workaround for now. > but I cannot see a better solution until gcc changes this behavior. > > FYI, I suggested that could be a gcc bug on gcc-help and if I don't > get any reply soon I'll report a bug. Good idea, by the time we have some users the bug might be already fixed :) Benoit
Attachment:
signature.asc
Description: This is a digitally signed message part.
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |