Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
7284 ディスカッション

Problem compiling MKL sample fortran with visual studio - unresolved symbol sgesv_f95

ripittard
新規コントリビューター I
2,529件の閲覧回数

I am new to MKL and using Intel Fortran with Visual Studio.   I just updated oneAPI base toolkit to enable MKL.  In Visual Studio I enabled the parallel option for MKL.   When I try to build the example gesv.f90 I get the following errors:

 

Linking...
1>Source1.obj : error LNK2019: unresolved external symbol SGESV_F95 referenced in function MAIN__
1>Source1.obj : error LNK2019: unresolved external symbol SGESV1_F95 referenced in function MAIN__

 

Any guidance would be appreciated.

Thanks,

0 件の賞賛
1 解決策
mecej4
名誉コントリビューター III
2,508件の閲覧回数

The linking failed because you did not tell the linker to use the BLAS95 and Lapack95 libraries.

It is best to use the MKL Link Line Advisor, and select BLAS95 and LAPACK95 as appropriate.

元の投稿で解決策を見る

3 返答(返信)
mecej4
名誉コントリビューター III
2,509件の閲覧回数

The linking failed because you did not tell the linker to use the BLAS95 and Lapack95 libraries.

It is best to use the MKL Link Line Advisor, and select BLAS95 and LAPACK95 as appropriate.

ripittard
新規コントリビューター I
2,478件の閲覧回数

Thanks Mecej4!  I had assumed that enabling MKL in MSVS would handle things automatically.

ShanmukhS_Intel
モデレーター
2,474件の閲覧回数

Hi Rittard,


Thanks for accepting the solution. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Best Regards,

Shanmukh.SS


返信