
HHSU 提到:
I compiled the same file(ublas_gesvd.cc) by useing g++(3.4.2) and boost 1.32 ,but still have error. I got the following error:
/tmp/ccBHG0Ri.o(.gnu.linkonce.t._ZN5boost7numeric8bindings6lapack6detail5gesvdEcciiPdiS4_S4_iS4_iS4_iS4_Pi+0x48): In function `boost::numeric::bindings::lapack::detail::gesvd(char, char, int, int, double*, int, double*, double*, int, double*, int, double*, int, double*, int*)': : undefined reference to `dgesvd_' collect2: ld returned 1 exit status If I rewrite the line 27 in gesvd.hpp #include <boost/static_assert.hpp> ==> #include <boost/assert.hpp> and compiled again via VC 7.1 ,then I get the following error : ublas_gesvd.obj : error LNK2019: unresolved external symbol _dgesvd referenced in function "void __cdecl boost::numeric::bindings::lapack::detail::gesvd(char,char,int,int,double *,int,double *,double *,int,double *,int,double *,int,double *,int *)" (?gesvd@detail@lapack@bindings@numeric@boost@@YAXDDHHPANH00H0H0H0PAH@Z) Debug/n3.exe : fatal error LNK1120: 1 unresolved externals What can I do to solve this problem ? Thansk! Bert.