[mlpack-svn] [MLPACK] #259: Build error on mex stuff

MLPACK Trac trac at coffeetalk-1.cc.gatech.edu
Tue Nov 27 21:57:05 EST 2012


#259: Build error on mex stuff
------------------------------+---------------------------------------------
 Reporter:  march             |        Owner:  rcurtin
     Type:  defect            |       Status:  new    
 Priority:  major             |    Milestone:         
Component:  armadillo sparse  |     Keywords:         
 Blocking:                    |   Blocked By:         
------------------------------+---------------------------------------------
 When trying to compile my recently updated version of mlpack on ion, I'm
 getting:

 {{{
 Linking CXX shared library ../../../../../matlab/emst_mex.mexa64

 Warning: You are using gcc version "4.6.3".  The version
          currently supported with MEX is "4.3.4".
          For a list of currently supported compilers see:
          http://www.mathworks.com/support/compilers/current_release/

 CMakeFiles/emst_mex.dir/emst.o: In function `_GLOBAL__sub_I_emst.cpp':
 emst.cpp:(.text+0x34f): undefined reference to
 `mlpack::io::CLIDeleter::CLIDeleter()'
 emst.cpp:(.text+0x360): undefined reference to
 `mlpack::io::CLIDeleter::~CLIDeleter()'
 CMakeFiles/emst_mex.dir/emst.o: In function
 `mlpack::emst::DualTreeBoruvka<mlpack::tree::BinarySpaceTree<mlpack::bound::HRectBound<2,
 false>, mlpack::emst::DTBStat, arma::Mat<double> >
 >::ComputeMST(arma::Mat<double>&)':
 emst.cpp:(.text._ZN6mlpack4emst15DualTreeBoruvkaINS_4tree15BinarySpaceTreeINS_5bound10HRectBoundILi2ELb0EEENS0_7DTBStatEN4arma3MatIdEEEEE10ComputeMSTERSA_[mlpack::emst::DualTreeBoruvka<mlpack::tree::BinarySpaceTree<mlpack::bound::HRectBound<2,
 false>, mlpack::emst::DTBStat, arma::Mat<double> >
 >::ComputeMST(arma::Mat<double>&)]+0x126): undefined reference to
 `mlpack::io::PrefixedOutStream::operator<<(unsigned long)'
 emst.cpp:(.text._ZN6mlpack4emst15DualTreeBoruvkaINS_4tree15BinarySpaceTreeINS_5bound10HRectBoundILi2ELb0EEENS0_7DTBStatEN4arma3MatIdEEEEE10ComputeMSTERSA_[mlpack::emst::DualTreeBoruvka<mlpack::tree::BinarySpaceTree<mlpack::bound::HRectBound<2,
 false>, mlpack::emst::DTBStat, arma::Mat<double> >
 >::ComputeMST(arma::Mat<double>&)]+0x131): undefined reference to
 `mlpack::io::PrefixedOutStream::operator<<(char const*)'
 emst.cpp:(.text._ZN6mlpack4emst15DualTreeBoruvkaINS_4tree15BinarySpaceTreeINS_5bound10HRectBoundILi2ELb0EEENS0_7DTBStatEN4arma3MatIdEEEEE10ComputeMSTERSA_[mlpack::emst::DualTreeBoruvka<mlpack::tree::BinarySpaceTree<mlpack::bound::HRectBound<2,
 false>, mlpack::emst::DTBStat, arma::Mat<double> >
 >::ComputeMST(arma::Mat<double>&)]+0x1e2): undefined reference to
 `mlpack::io::PrefixedOutStream::operator<<(char const*)'
 emst.cpp:(.text._ZN6mlpack4emst15DualTreeBoruvkaINS_4tree15BinarySpaceTreeINS_5bound10HRectBoundILi2ELb0EEENS0_7DTBStatEN4arma3MatIdEEEEE10ComputeMSTERSA_[mlpack::emst::DualTreeBoruvka<mlpack::tree::BinarySpaceTree<mlpack::bound::HRectBound<2,
 false>, mlpack::emst::DTBStat, arma::Mat<double> >
 >::ComputeMST(arma::Mat<double>&)]+0x1ef): undefined reference to
 `mlpack::io::PrefixedOutStream::operator<<(double)'
 emst.cpp:(.text._ZN6mlpack4emst15DualTreeBoruvkaINS_4tree15BinarySpaceTreeINS_5bound10HRectBoundILi2ELb0EEENS0_7DTBStatEN4arma3MatIdEEEEE10ComputeMSTERSA_[mlpack::emst::DualTreeBoruvka<mlpack::tree::BinarySpaceTree<mlpack::bound::HRectBound<2,
 false>, mlpack::emst::DTBStat, arma::Mat<double> >
 >::ComputeMST(arma::Mat<double>&)]+0x1fe): undefined reference to
 `mlpack::io::PrefixedOutStream::operator<<(std::basic_ostream<char,
 std::char_traits<char> >& (*)(std::basic_ostream<char,
 std::char_traits<char> >&))'
 collect2: ld returned 1 exit status

     mex: link of ' "../../../../../matlab/emst_mex.mexa64"' failed.

 make[2]: *** [matlab/emst_mex.mexa64] Error 1
 }}}

 As a workaround, I would be happy with the ability to just build and
 install the library without any of the executables or matlab wrappers.

-- 
Ticket URL: <http://trac.research.cc.gatech.edu/fastlab/ticket/259>
MLPACK <www.fast-lab.org>
MLPACK is an intuitive, fast, and scalable C++ machine learning library developed by the FASTLAB at Georgia Tech under Dr. Alex Gray.


More information about the mlpack-svn mailing list