Dear all,

I updated the deal.II library lately, and because on the cluster I have
access to I don't seem to be able to compile trilinos with shared libraries,
I had to make everything static.

This would be ok, except that compilation now is terribly slow... :-)

And now the problems.

When linking my program, i was getting a LOT of undefined references errors.
I'll just make a quick example, so that things might be easier for you guys
to help me out.

/data/heltai/c++/lib_static/lib/liblpcm_2d.g.a(error_handler_2d.g.o)(.gnu.linkonce.t._ZN12ErrorHandlerILi2EN6dealii6VectorIdEEE12output_tableEj+0x5bb):
In function
dealii::ConvergenceTable::omit_column_from_convergence_rate_evaluation(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
/data/heltai/c++/lib_static/lib/liblpcm_2d.g.a(error_handler_2d.g.o)(.gnu.linkonce.t._ZN12ErrorHandlerILi2EN6dealii6VectorIdEEE12output_tableEj+0x668):include/error_handler.templates.h:163:
undefined reference to
dealii::ConvergenceTable::evaluate_all_convergence_rates(std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&,
dealii::ConvergenceTable::RateMode)'

Now, from the above error, it seems that libbase.g.a is not included. I
removed the @ in front of the link line, and indeed libbase.g.a is there. I
added the option -lbase.g and the program now compiles and run fine. Is this
something strange with my setting, or am I missing something?

Note that I had to do this also with all trilinos libraries, but NOT with
any other lib from deal.II.

This sounds terribly strange for me, but maybe some of you know what it all
means...


Thanks in advance.

Luca.
_______________________________________________

Reply via email to