Hi 
I try to compile static libraries by enabling static executable, but it 
failed. Can anyone help me about this?
Here are some issues (and possible way to work around)
8.4.1 always get some error (looks like template instantiation problem)
here are examples of errors
----------

/home/ycc/tool_download/STATIC_deal/dealii-8.4.1/source/fe/fe_system.cc:1445: 
undefined reference to 
`dealii::internal::FEValues::FiniteElementRelatedData<1, 
3>::initialize(unsigned int, dealii::FiniteElement<1, 3> const&, 
dealii::UpdateFlags)'

/home/ycc/test/deal/lib/libdeal_II.g.a(fe_system.cc.o): In function 
`dealii::FESystem<1, 3>::get_subface_data(dealii::UpdateFlags, 
dealii::Mapping<1, 3> const&, dealii::Quadrature<0> const&, 
dealii::internal::FEValues::FiniteElementRelatedData<1, 3>&) const':

/home/ycc/tool_download/STATIC_deal/dealii-8.4.1/source/fe/fe_system.cc:1503: 
undefined reference to 
`dealii::internal::FEValues::FiniteElementRelatedData<1, 
3>::initialize(unsigned int, dealii::FiniteElement<1, 3> const&, 
dealii::UpdateFlags)'

/home/ycc/tool_download/STATIC_deal/dealii-8.4.1/source/dofs/dof_tools_sparsity.cc:447:
 
undefined reference to `dealii::DoFHandler<2, 
2>::n_boundary_dofs(std::map<unsigned char, dealii::Function<2, double> 
const*, std::less<unsigned char>, std::allocator<std::pair<unsigned char 
const, dealii::Function<2, double> const*> > > const&) const'

/home/ycc/tool_download/STATIC_deal/dealii-8.4.1/source/dofs/dof_tools_sparsity.cc:447:
 
undefined reference to `dealii::DoFHandler<2, 
2>::n_boundary_dofs(std::map<unsigned char, dealii::Function<2, double> 
const*, std::less<unsigned char>, std::allocator<std::pair<unsigned char 
const, dealii::Function<2, double> const*> > > const&) const'

......

----------

alll of them are about fe-system/value and dof_handler

I tried to fixed it by manual instantiation (adding <1,3> <2,3> ...). Only 
solved the fe-system/value problem


github version:

with thread - work fine

without thread - same problem as 8.4.1


with PETSC and hypre

manually add hypre library to solve the link problem


linking has sequence problem

solved by -Wl,--start-group and -Wl,--end-group (the easiest way)


thanks for help

YC Chen


-- 
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.

Reply via email to