Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

Blas and Lapack

space-tech1
Beginner
283 Views
hi

When I use BLAS and LAPACK separately everything's fine, but when I try to use both of them
in one solution I get the following error:


Error1error LNK2005: _F95_PRECISION. already defined in lapack.obj
Error2error LNK2005: _MKL95_PRECISION. already defined in lapack.obj

I have imported BLAS.f90 and LAPACK.f90 in the "header files" and at the beginning of the program I have
written the following:
USE mkl95_lapack
USE mkl95_PRECISION
USE mkl95_BLAS

Thank you.




0 Kudos
1 Reply
TimP
Honored Contributor III
283 Views
When you invoke the .mod files by those USE statements, you don't need the .f90 source files from which they were built, except as a reference for your own information.
0 Kudos
Reply