Linking problem

Post here if you have a question about linking your program with LAPACK or ScaLAPACK library

Linking problem

Postby Mmisiek » Thu Feb 25, 2016 12:50 pm

Hello,
I am trying to link project using armadillo, lblas and lapack.
The issue is missing references to some _f2c_ functions.
I downloaded precompiled static versions from this site.
I am linking with Microsoft linker from VS 2012.
What I am missing ?
Thanks
Michal


Info: Internal Builder is used for build
link /nologo "/libpath:C:\\Workspace\\konav-android-library\\konav\\OS_WINDOWS" "/libpath:C:\\Workspace\\konav-android-library\\obj\\local\\win64" /OUT:testkonavlib.exe testkonavlib.obj liblapacke.lib liblapack.lib libblas.lib libkonav.a
libkonav.a(IridCBEphem.obj) : error LNK2001: unresolved external symbol _f2c_sdot
libkonav.a(orbfit.obj) : error LNK2001: unresolved external symbol _f2c_sdot
libkonav.a(CNavUtil.obj) : error LNK2001: unresolved external symbol _f2c_sdot
libkonav.a(geolocnd.obj) : error LNK2019: unresolved external symbol _f2c_sdot referenced in function "double __cdecl arma::blas::dot<double>(unsigned int,double const *,double const *)" (??$dot@N@blas@arma@@YANIPBN0@Z)
libkonav.a(posstateutils.obj) : error LNK2001: unresolved external symbol _f2c_sdot
libkonav.a(measutils.obj) : error LNK2001: unresolved external symbol _f2c_sdot
libkonav.a(tropo.obj) : error LNK2001: unresolved external symbol _f2c_sdot
libkonav.a(IridCBEphem.obj) : error LNK2001: unresolved external symbol _f2c_ddot
libkonav.a(orbfit.obj) : error LNK2019: unresolved external symbol _f2c_ddot referenced in function "void __cdecl arma::arma_assert_blas_size<class arma::Col<double> >(class arma::Col<double> const &)" (??$arma_assert_blas_size@V?$Col@N@arma@@@arma@@YAXABV?$Col@N@0@@Z)
libkonav.a(CNavUtil.obj) : error LNK2001: unresolved external symbol _f2c_ddot
libkonav.a(geolocnd.obj) : error LNK2001: unresolved external symbol _f2c_ddot
libkonav.a(posstateutils.obj) : error LNK2001: unresolved external symbol _f2c_ddot
libkonav.a(measutils.obj) : error LNK2001: unresolved external symbol _f2c_ddot
libkonav.a(tropo.obj) : error LNK2001: unresolved external symbol _f2c_ddot
libkonav.a(IridCBEphem.obj) : error LNK2001: unresolved external symbol _f2c_sgemv
libkonav.a(orbfit.obj) : error LNK2001: unresolved external symbol _f2c_sgemv
libkonav.a(CNavUtil.obj) : error LNK2001: unresolved external symbol _f2c_sgemv
libkonav.a(geolocnd.obj) : error LNK2019: unresolved external symbol _f2c_sgemv referenced in function "void __cdecl arma::blas::gemv<double>(char const *,int const *,int const *,double const *,double const *,int const *,double const *,int const *,double const *,double *,int const *)" (??$gemv@N@blas@arma@@YAXPBDPBH1PBN21212PAN1@Z)
libkonav.a(posstateutils.obj) : error LNK2001: unresolved external symbol _f2c_sgemv
libkonav.a(measutils.obj) : error LNK2001: unresolved external symbol _f2c_sgemv
libkonav.a(tropo.obj) : error LNK2001: unresolved external symbol _f2c_sgemv
libkonav.a(IridCBEphem.obj) : error LNK2001: unresolved external symbol _f2c_dgemv
libkonav.a(orbfit.obj) : error LNK2001: unresolved external symbol _f2c_dgemv
libkonav.a(CNavUtil.obj) : error LNK2001: unresolved external symbol _f2c_dgemv
libkonav.a(geolocnd.obj) : error LNK2019: unresolved external symbol _f2c_dgemv referenced in function "void __cdecl arma::blas::gemv<double>(char const *,int const *,int const *,double const *,double const *,int const *,double const *,int const *,double const *,double *,int const *)" (??$gemv@N@blas@arma@@YAXPBDPBH1PBN21212PAN1@Z)
libkonav.a(posstateutils.obj) : error LNK2001: unresolved external symbol _f2c_dgemv
libkonav.a(measutils.obj) : error LNK2001: unresolved external symbol _f2c_dgemv
libkonav.a(tropo.obj) : error LNK2001: unresolved external symbol _f2c_dgemv
libkonav.a(IridCBEphem.obj) : error LNK2001: unresolved external symbol _f2c_cgemv
libkonav.a(orbfit.obj) : error LNK2019: unresolved external symbol _f2c_cgemv referenced in function "public: static void __cdecl arma::op_max::apply<class arma::Op<class arma::eOp<class arma::Col<double>,class arma::eop_abs>,class arma::op_sum> >(class arma::Mat<double> &,class arma::Op<class arma::Op<class arma::eOp<class arma::Col<double>,class arma::eop_abs>,class arma::op_sum>,class arma::op_max> const &)" (??$apply@V?$Op@V?$eOp@V?$Col@N@arma@@Veop_abs@2@@arma@@Vop_sum@2@@arma@@@op_max@arma@@SAXAAV?$Mat@N@1@ABV?$Op@V?$Op@V?$eOp@V?$Col@N@arma@@Veop_abs@2@@arma@@Vop_sum@2@@arma@@Vop_max@2@@1@@Z)
libkonav.a(CNavUtil.obj) : error LNK2001: unresolved external symbol _f2c_cgemv
libkonav.a(geolocnd.obj) : error LNK2001: unresolved external symbol _f2c_cgemv
libkonav.a(posstateutils.obj) : error LNK2001: unresolved external symbol _f2c_cgemv
libkonav.a(measutils.obj) : error LNK2001: unresolved external symbol _f2c_cgemv
libkonav.a(tropo.obj) : error LNK2001: unresolved external symbol _f2c_cgemv
libkonav.a(IridCBEphem.obj) : error LNK2001: unresolved external symbol _f2c_zgemv
libkonav.a(orbfit.obj) : error LNK2001: unresolved external symbol _f2c_zgemv
libkonav.a(CNavUtil.obj) : error LNK2001: unresolved external symbol _f2c_zgemv
libkonav.a(geolocnd.obj) : error LNK2019: unresolved external symbol _f2c_zgemv referenced in function "void __cdecl arma::blas::gemv<double>(char const *,int const *,int const *,double const *,double const *,int const *,double const *,int const *,double const *,double *,int const *)" (??$gemv@N@blas@arma@@YAXPBDPBH1PBN21212PAN1@Z)
libkonav.a(posstateutils.obj) : error LNK2001: unresolved external symbol _f2c_zgemv
libkonav.a(measutils.obj) : error LNK2001: unresolved external symbol _f2c_zgemv
libkonav.a(tropo.obj) : error LNK2001: unresolved external symbol _f2c_zgemv
libkonav.a(CNavUtil.obj) : error LNK2001: unresolved external symbol _f2c_sgemm
libkonav.a(geolocnd.obj) : error LNK2019: unresolved external symbol _f2c_sgemm referenced in function "void __cdecl arma::blas::gemm<double>(char const *,char const *,int const *,int const *,int const *,double const *,double const *,int const *,double const *,int const *,double const *,double *,int const *)" (??$gemm@N@blas@arma@@YAXPBD0PBH11PBN21212PAN1@Z)
libkonav.a(posstateutils.obj) : error LNK2001: unresolved external symbol _f2c_sgemm
libkonav.a(IridCBEphem.obj) : error LNK2001: unresolved external symbol _f2c_sgemm
libkonav.a(orbfit.obj) : error LNK2001: unresolved external symbol _f2c_sgemm
libkonav.a(CNavUtil.obj) : error LNK2001: unresolved external symbol _f2c_dgemm
libkonav.a(geolocnd.obj) : error LNK2019: unresolved external symbol _f2c_dgemm referenced in function "void __cdecl arma::blas::gemm<double>(char const *,char const *,int const *,int const *,int const *,double const *,double const *,int const *,double const *,int const *,double const *,double *,int const *)" (??$gemm@N@blas@arma@@YAXPBD0PBH11PBN21212PAN1@Z)
libkonav.a(posstateutils.obj) : error LNK2001: unresolved external symbol _f2c_dgemm
libkonav.a(IridCBEphem.obj) : error LNK2001: unresolved external symbol _f2c_dgemm
libkonav.a(orbfit.obj) : error LNK2001: unresolved external symbol _f2c_dgemm
libkonav.a(CNavUtil.obj) : error LNK2001: unresolved external symbol _f2c_cgemm
libkonav.a(geolocnd.obj) : error LNK2019: unresolved external symbol _f2c_cgemm referenced in function "void __cdecl arma::blas::gemm<double>(char const *,char const *,int const *,int const *,int const *,double const *,double const *,int const *,double const *,int const *,double const *,double *,int const *)" (??$gemm@N@blas@arma@@YAXPBD0PBH11PBN21212PAN1@Z)
libkonav.a(posstateutils.obj) : error LNK2001: unresolved external symbol _f2c_cgemm
libkonav.a(IridCBEphem.obj) : error LNK2001: unresolved external symbol _f2c_cgemm
libkonav.a(orbfit.obj) : error LNK2001: unresolved external symbol _f2c_cgemm
libkonav.a(CNavUtil.obj) : error LNK2001: unresolved external symbol _f2c_zgemm
libkonav.a(geolocnd.obj) : error LNK2019: unresolved external symbol _f2c_zgemm referenced in function "void __cdecl arma::blas::gemm<double>(char const *,char const *,int const *,int const *,int const *,double const *,double const *,int const *,double const *,int const *,double const *,double *,int const *)" (??$gemm@N@blas@arma@@YAXPBD0PBH11PBN21212PAN1@Z)
libkonav.a(posstateutils.obj) : error LNK2001: unresolved external symbol _f2c_zgemm
libkonav.a(IridCBEphem.obj) : error LNK2001: unresolved external symbol _f2c_zgemm
libkonav.a(orbfit.obj) : error LNK2001: unresolved external symbol _f2c_zgemm
libkonav.a(CNavUtil.obj) : error LNK2001: unresolved external symbol _f2c_ssyrk
libkonav.a(geolocnd.obj) : error LNK2019: unresolved external symbol _f2c_ssyrk referenced in function "void __cdecl arma::blas::syrk<double>(char const *,char const *,int const *,int const *,double const *,double const *,int const *,double const *,double *,int const *)" (??$syrk@N@blas@arma@@YAXPBD0PBH1PBN212PAN1@Z)
libkonav.a(posstateutils.obj) : error LNK2001: unresolved external symbol _f2c_ssyrk
libkonav.a(IridCBEphem.obj) : error LNK2001: unresolved external symbol _f2c_ssyrk
libkonav.a(orbfit.obj) : error LNK2001: unresolved external symbol _f2c_ssyrk
libkonav.a(CNavUtil.obj) : error LNK2001: unresolved external symbol _f2c_dsyrk
libkonav.a(geolocnd.obj) : error LNK2019: unresolved external symbol _f2c_dsyrk referenced in function "void __cdecl arma::blas::syrk<double>(char const *,char const *,int const *,int const *,double const *,double const *,int const *,double const *,double *,int const *)" (??$syrk@N@blas@arma@@YAXPBD0PBH1PBN212PAN1@Z)
libkonav.a(posstateutils.obj) : error LNK2001: unresolved external symbol _f2c_dsyrk
libkonav.a(IridCBEphem.obj) : error LNK2001: unresolved external symbol _f2c_dsyrk
libkonav.a(orbfit.obj) : error LNK2001: unresolved external symbol _f2c_dsyrk
testkonavlib.exe : fatal error LNK1120: 12 unresolved externals
Mmisiek
 
Posts: 1
Joined: Thu Feb 25, 2016 12:41 pm

Return to Linking Problem

Who is online

Users browsing this forum: No registered users and 1 guest