Community
cancel
Showing results for 
Search instead for 
Did you mean: 
mecej4
Black Belt
95 Views

Error in example program for MKL_GET_VERSION_STRING in MKL reference

The MKL Reference contains a short example program for using MKL_GET_VERSION_STRING (Fortran callable MKL routine):

program mkl_get_version_string

character*198  buf

call mkl_get_version_string(buf)
write(*,'(a)') buf

end

Please correct the program by changing the first line -- the program name cannot be the same as the name of a subroutine that it calls.

T:\MKLITSOL>ifort mklver.f90
Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.2.0 Build 20210228_000000
Copyright (C) 1985-2021 Intel Corporation.  All rights reserved.

mklver.f90(5): error #6413: This global name is invalid in this context.   [MKL_GET_VERSION_STRING]
call mkl_get_version_string(buf)
-----^
compilation aborted for mklver.f90 (code 1)
0 Kudos
1 Reply
Gennady_F_Intel
Moderator
76 Views

Thanks, mecej4. You are right. We will fix that.

Reply