Hello, I need to use Vector FullMatrix, BlockVector and BlockSparseMatrix with different datatype than what is already provided and instantiated (float, double...). I have the following problem when instantiating with a different type: the linking fails due to the multiple definitions of the following functions: vector.cc:-1: error: multiple definition of `dealii::Vector<std::complex<float> >::operator=(std::complex<float>)' vector.cc:-1: error: multiple definition of `dealii::Vector<int>::lp_norm(int) const'
These two functions are explicitly instantiated in vector.templates.h for float and int types. But, if I instantiate Vector<myNumber> in my code these two definitions will appear in both files (vector.cc and my source file) even though I use a different type. Could you please let me know if there is a reason to instantiate them in the header file rather than in the source vector.cc file? Thank you. Dragan -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
