Skip to content

Instantly share code, notes, and snippets.

View tarunmaganti's full-sized avatar

Tarun Maganti tarunmaganti

View GitHub Profile
@tarunmaganti
tarunmaganti / sh
Created December 4, 2021 14:18
mlpack and boost serialization linker error
This file has been truncated, but you can view the full file.
/usr/bin/ld: /tmp/SignatureAnalysis-ae9efb.o: in function `GCC_except_table648':
SignatureAnalysis.cpp:(.gcc_except_table+0x35ac): undefined reference to `typeinfo for boost::archive::archive_exception'
/usr/bin/ld: /tmp/SignatureAnalysis-ae9efb.o: in function `__cxx_global_var_init.24':
SignatureAnalysis.cpp:(.text.startup[_ZN5boost13serialization9singletonINS_7archive6detail11oserializerINS2_12xml_oarchiveEN6mlpack3ann3FFNINS7_21NegativeLogLikelihoodIN4arma3MatIdEESC_EENS7_20RandomInitializationEJEEEEEE10m_instanceE]+0x43): undefined reference to `boost::archive::detail::basic_oserializer::basic_oserializer(boost::serialization::extended_type_info const&)'
/usr/bin/ld: /tmp/SignatureAnalysis-ae9efb.o: in function `boost::serialization::singleton<boost::serialization::extended_type_info_typeid<mlpack::ann::FFN<mlpack::ann::NegativeLogLikelihood<arma::Mat<double>, arma::Mat<double> >, mlpack::ann::RandomInitialization> > >::get_instance()':
SignatureAnalysis.cpp:(.text._ZN5boost13serialization9singletonINS0_2