LJXLJXLJX opened a new issue #15532: Linking error while compiling on windows10. URL: https://github.com/apache/incubator-mxnet/issues/15532 I am trying to build the mxnet(1.4.1) c++ api on windows 10. Firstly, I met the fatal error C1060, compiler is out of heap space. Then I build again and met some linking error. > > 2>la_op.obj : error LNK2019: unresolved external symbol _spotrf_ referenced in function "void __cdecl linalg_potrf<struct mshadow::cpu,float>(struct mshadow::Tensor<struct mshadow::cpu,2,float> const &,bool,struct mshadow::Stream<struct mshadow::cpu> *)" (??$linalg_potrf@Ucpu@mshadow@@M@@YAXABU?$Tensor@Ucpu@mshadow@@$01M@mshadow@@_NPAU?$Stream@Ucpu@mshadow@@@1@@Z) > 2>la_op.obj : error LNK2019: unresolved external symbol _dpotrf_ referenced in function "void __cdecl linalg_potrf<struct mshadow::cpu,double>(struct mshadow::Tensor<struct mshadow::cpu,2,double> const &,bool,struct mshadow::Stream<struct mshadow::cpu> *)" (??$linalg_potrf@Ucpu@mshadow@@N@@YAXABU?$Tensor@Ucpu@mshadow@@$01N@mshadow@@_NPAU?$Stream@Ucpu@mshadow@@@1@@Z) > 2>la_op.obj : error LNK2019: unresolved external symbol _spotri_ referenced in function "void __cdecl linalg_potri<struct mshadow::cpu,float>(struct mshadow::Tensor<struct mshadow::cpu,2,float> const &,bool,struct mshadow::Stream<struct mshadow::cpu> *)" (??$linalg_potri@Ucpu@mshadow@@M@@YAXABU?$Tensor@Ucpu@mshadow@@$01M@mshadow@@_NPAU?$Stream@Ucpu@mshadow@@@1@@Z) > 2>la_op.obj : error LNK2019: unresolved external symbol _dpotri_ referenced in function "void __cdecl linalg_potri<struct mshadow::cpu,double>(struct mshadow::Tensor<struct mshadow::cpu,2,double> const &,bool,struct mshadow::Stream<struct mshadow::cpu> *)" (??$linalg_potri@Ucpu@mshadow@@N@@YAXABU?$Tensor@Ucpu@mshadow@@$01N@mshadow@@_NPAU?$Stream@Ucpu@mshadow@@@1@@Z) > 2>la_op.obj : error LNK2019: unresolved external symbol _sgeqrf_ referenced in function "int __cdecl linalg_gelqf_workspace_query<struct mshadow::cpu,float>(struct mshadow::Tensor<struct mshadow::cpu,2,float> const &,struct mshadow::Stream<struct mshadow::cpu> *)" (??$linalg_gelqf_workspace_query@Ucpu@mshadow@@M@@YAHABU?$Tensor@Ucpu@mshadow@@$01M@mshadow@@PAU?$Stream@Ucpu@mshadow@@@1@@Z) > 2>la_op.obj : error LNK2019: unresolved external symbol _dgeqrf_ referenced in function "int __cdecl linalg_gelqf_workspace_query<struct mshadow::cpu,double>(struct mshadow::Tensor<struct mshadow::cpu,2,double> const &,struct mshadow::Stream<struct mshadow::cpu> *)" (??$linalg_gelqf_workspace_query@Ucpu@mshadow@@N@@YAHABU?$Tensor@Ucpu@mshadow@@$01N@mshadow@@PAU?$Stream@Ucpu@mshadow@@@1@@Z) > 2>la_op.obj : error LNK2019: unresolved external symbol _sorgqr_ referenced in function "int __cdecl linalg_gelqf_workspace_query<struct mshadow::cpu,float>(struct mshadow::Tensor<struct mshadow::cpu,2,float> const &,struct mshadow::Stream<struct mshadow::cpu> *)" (??$linalg_gelqf_workspace_query@Ucpu@mshadow@@M@@YAHABU?$Tensor@Ucpu@mshadow@@$01M@mshadow@@PAU?$Stream@Ucpu@mshadow@@@1@@Z) > 2>la_op.obj : error LNK2019: unresolved external symbol _dorgqr_ referenced in function "int __cdecl linalg_gelqf_workspace_query<struct mshadow::cpu,double>(struct mshadow::Tensor<struct mshadow::cpu,2,double> const &,struct mshadow::Stream<struct mshadow::cpu> *)" (??$linalg_gelqf_workspace_query@Ucpu@mshadow@@N@@YAHABU?$Tensor@Ucpu@mshadow@@$01N@mshadow@@PAU?$Stream@Ucpu@mshadow@@@1@@Z) > 2>la_op.obj : error LNK2019: unresolved external symbol _ssyevd_ referenced in function "void __cdecl linalg_syevd<struct mshadow::cpu,float>(struct mshadow::Tensor<struct mshadow::cpu,2,float> const &,struct mshadow::Tensor<struct mshadow::cpu,1,float> const &,struct mshadow::Tensor<struct mshadow::cpu,1,float> const &,struct mshadow::Stream<struct mshadow::cpu> *)" (??$linalg_syevd@Ucpu@mshadow@@M@@YAXABU?$Tensor@Ucpu@mshadow@@$01M@mshadow@@ABU?$Tensor@Ucpu@mshadow@@$00M@1@1PAU?$Stream@Ucpu@mshadow@@@1@@Z) > 2>la_op.obj : error LNK2019: unresolved external symbol _dsyevd_ referenced in function "void __cdecl linalg_syevd<struct mshadow::cpu,double>(struct mshadow::Tensor<struct mshadow::cpu,2,double> const &,struct mshadow::Tensor<struct mshadow::cpu,1,double> const &,struct mshadow::Tensor<struct mshadow::cpu,1,double> const &,struct mshadow::Stream<struct mshadow::cpu> *)" (??$linalg_syevd@Ucpu@mshadow@@N@@YAXABU?$Tensor@Ucpu@mshadow@@$01N@mshadow@@ABU?$Tensor@Ucpu@mshadow@@$00N@1@1PAU?$Stream@Ucpu@mshadow@@@1@@Z) > 2>la_op.obj : error LNK2019: unresolved external symbol _sgetrf_ referenced in function "void __cdecl linalg_batch_inverse<struct mshadow::cpu,float>(struct mshadow::Tensor<struct mshadow::cpu,3,float> const &,struct mshadow::Tensor<struct mshadow::cpu,3,float> const &,struct mshadow::Tensor<struct mshadow::cpu,1,float> const &,struct mshadow::Stream<struct mshadow::cpu> *)" (??$linalg_batch_inverse@Ucpu@mshadow@@M@@YAXABU?$Tensor@Ucpu@mshadow@@$02M@mshadow@@0ABU?$Tensor@Ucpu@mshadow@@$00M@1@PAU?$Stream@Ucpu@mshadow@@@1@@Z) > 2>la_op.obj : error LNK2019: unresolved external symbol _dgetrf_ referenced in function "void __cdecl linalg_batch_inverse<struct mshadow::cpu,double>(struct mshadow::Tensor<struct mshadow::cpu,3,double> const &,struct mshadow::Tensor<struct mshadow::cpu,3,double> const &,struct mshadow::Tensor<struct mshadow::cpu,1,double> const &,struct mshadow::Stream<struct mshadow::cpu> *)" (??$linalg_batch_inverse@Ucpu@mshadow@@N@@YAXABU?$Tensor@Ucpu@mshadow@@$02N@mshadow@@0ABU?$Tensor@Ucpu@mshadow@@$00N@1@PAU?$Stream@Ucpu@mshadow@@@1@@Z) > 2>la_op.obj : error LNK2019: unresolved external symbol _sgetri_ referenced in function "void __cdecl mxnet::op::LaOpForward<struct mshadow::cpu,2,2,1,1,struct mxnet::op::inverse>(struct nnvm::NodeAttrs const &,struct mxnet::OpContext const &,class std::vector<class mxnet::TBlob,class std::allocator<class mxnet::TBlob> > const &,class std::vector<enum mxnet::OpReqType,class std::allocator<enum mxnet::OpReqType> > const &,class std::vector<class mxnet::TBlob,class std::allocator<class mxnet::TBlob> > const &)" (??$LaOpForward@Ucpu@mshadow@@$01$01$00$00Uinverse@op@mxnet@@@op@mxnet@@YAXABUNodeAttrs@nnvm@@ABUOpContext@1@ABV?$vector@VTBlob@mxnet@@V?$allocator@VTBlob@mxnet@@@std@@@std@@ABV?$vector@W4OpReqType@mxnet@@V?$allocator@W4OpReqType@mxnet@@@std@@@6@2@Z) > 2>la_op.obj : error LNK2019: unresolved external symbol _dgetri_ referenced in function "void __cdecl mxnet::op::LaOpForward<struct mshadow::cpu,2,2,1,1,struct mxnet::op::inverse>(struct nnvm::NodeAttrs const &,struct mxnet::OpContext const &,class std::vector<class mxnet::TBlob,class std::allocator<class mxnet::TBlob> > const &,class std::vector<enum mxnet::OpReqType,class std::allocator<enum mxnet::OpReqType> > const &,class std::vector<class mxnet::TBlob,class std::allocator<class mxnet::TBlob> > const &)" (??$LaOpForward@Ucpu@mshadow@@$01$01$00$00Uinverse@op@mxnet@@@op@mxnet@@YAXABUNodeAttrs@nnvm@@ABUOpContext@1@ABV?$vector@VTBlob@mxnet@@V?$allocator@VTBlob@mxnet@@@std@@@std@@ABV?$vector@W4OpReqType@mxnet@@V?$allocator@W4OpReqType@mxnet@@@std@@@6@2@Z) > 2>MSVCRT.lib(chandler4gs.obj) : error LNK2019: unresolved external symbol __except_handler4_common referenced in function __except_handler4 > 2>D:\mxnet\build\Release\libmxnet.dll : fatal error LNK1120: 15 unresolved externals
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
