undefined symbol in Cython module when using mlpack
问题 I met the problem "undefined symbol" when using mlpack in Cython. Here is my test case: cdef extern from "<mlpack/core.hpp>" namespace "arma": ctypedef unsigned uword cdef cppclass vec: vec() vec(uword) cdef cppclass mat: mat() mat(uword, uword) void matprint "print" () double& operator() (const uword, const uword) cdef extern from "<mlpack/methods/pca/pca.hpp>" namespace "mlpack::pca": cdef cppclass ExactSVDPolicy: ExactSVDPolicy() cdef cppclass PCA[ExactSVDPolicy]: PCA() void Apply(const