Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28602 Discussions

Declaration Conflict by using both LAPACK and BLAS

junuylia
Beginner
731 Views
Hi,

I have a problem when using both LAPACK and BLAS libraries in my program.The error suggests that

/opt/intel/Compiler/11.1/059/mkl/include/lapack.f90(26): error #5509: Declaration of routine 'F95_PRECISION' conflicts with a previous declaration
MODULE F95_PRECISION ......

The statement I used is

INCLUDE 'blas.f90'
INCLUDE 'lapack.f90'

.....

USE F95_PRECISION, ONLY: WP => SP
use blas95
USE LAPACK95

......

Apparantly, both blas.f90 and lapack.f90 have declared the module "F95_PRECISION". I need to use the routines in both libraries, so how do I ask the compiler to use only one of the declarations? Thank you very much.

Jun

0 Kudos
2 Replies
Steven_L_Intel1
Employee
731 Views
Rather then INCLUDE those files, just have the USE lines and make sure that the "ia32" or "intel64" subfolder of the MKL include folder is in your -I list. The modules are precompiled.
0 Kudos
junuylia
Beginner
731 Views
Yes, I figured that out. Thank you very much.
0 Kudos
Reply