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

ifort: error #10037: could not find 'link'

htkang
初学者
575 次查看

I have an errormessage during compiling the program below.
The message is

ifort: error #10037: could not find 'link'

Thanks,
**************The Program I am playing with***********************************************
! ----------------------------------------------------------

! This program contains one subroutine for computing the

! arithmetic, geometric and harmonic means of three REALs.

! ----------------------------------------------------------

!234567890

PROGRAM Mean6

IMPLICIT NONE

REAL :: u, v, w

REAL :: ArithMean, GeoMean, HarmMean

READ(*,*) u, v, w

CALL Means(u, v, w, ArithMean, GeoMean, HarmMean)

WRITE(*,*) "Arithmetic Mean = ", ArithMean

WRITE(*,*) "Geometric Mean = ", GeoMean

WRITE(*,*) "Harmonic Mean = ", HarmMean

CONTAINS

! ----------------------------------------------------------

! SUBROUTINE Means():

! This subroutine receives three REAL values and computes

! their arithmetic, geometric, and harmonic means.

! ----------------------------------------------------------

SUBROUTINE Means(a, b, c, Am, Gm, Hm)

IMPLICIT NONE

REAL, INTENT(IN) :: a, b, c

REAL, INTENT(OUT) :: Am, Gm, Hm

Am = (a + b + c)/3.0

Gm = (a * b * c)**(1.0/3.0)

Hm = 3.0/(1.0/a + 1.0/b + 1.0/c)

END SUBROUTINE Means

END PROGRAM Mean6

0 项奖励
2 回复数
Steven_L_Intel1
575 次查看

How are you establishing the compiler environment and how are you invoking the compiler? Which compiler version are you using? The source file is not relevant.

This error means that the ifort "driver" cannot find the required Microsoft tools and libraries. This can happen if you force an install of a compiler version without the required prerequisite Microsoft tools, or if you have tried to establish the environment "by hand" and not done so correctly.
0 项奖励
htkang
初学者
575 次查看

How are you establishing the compiler environment and how are you invoking the compiler? Which compiler version are you using? The source file is not relevant.

This error means that the ifort "driver" cannot find the required Microsoft tools and libraries. This can happen if you force an install of a compiler version without the required prerequisite Microsoft tools, or if you have tried to establish the environment "by hand" and not done so correctly.

Thanks.
I resolved this issue with your comments made for other guy.
0 项奖励
回复