daviddoria 334 Posting Virtuoso Featured Poster

I was using a library recently and I was getting a "undefined reference" linker error when I tried to call a template function with a type that they did not plan on me using. I asked on the mailing list and they said to call

VSL_VECTOR_IO_INSTANTIATE(vnl_matrix_fixed<double,3,3>);

I guess it is a macro to tell the compiler to create the function for this type. It worked fine - but they also said there should be a compiler setting to "auto instantiate" this type of thing. Does anyone know how to do this?

Thanks,

Dave