MKL erro when using IMSL
i am using IMSL with intel virtual fortran+mkl.

I tried to use a routine from IMSL. It was compiled fine, but when I try to execute the file, it came up with an error saying: 

    MKL ERROR: Parameter 7 was incorrect on entry to SGEEVX

    *** TERMINAL ERROR 2 from EVCRG.  The required storage cannot be allocated.
    ***          The specified N may be too large, where N = 1064682127.


The following is the code I am using:

    PROGRAM test_evcrg
    include 'link_fnl_static.h'  
    !DEC$ OBJCOMMENT lib:'libiomp5mt.lib'
    
    IMPLICIT NONE
    REAL, Dimension(2,2) :: p,vr
    REAL, Dimension(2) :: w

    p = RESHAPE([0.7, 0.3, 0.5,0.5],[2,2])
     
    CALL EVCRG (p,w,vr) 
    
    WRITE (*,*), w
    WRITE (*,*)
    WRITE (*,*), vr
    
    END PROGRAM test_evcrg


How can I fix this problem.
Thanks!
MKL erro when using IMSL
===

i am using IMSL with intel virtual fortran+mkl.

I tried to use a routine from IMSL. It was compiled fine, but when I try to execute the file, it came up with an error saying: 

    MKL ERROR: Parameter 7 was incorrect on entry to SGEEVX

    *** TERMINAL ERROR 2 from EVCRG.  The required storage cannot be allocated.
    ***          The specified N may be too large, where N = 1064682127.


The following is the code I am using:

    PROGRAM test_evcrg
    include 'link_fnl_static.h'  
    !DEC$ OBJCOMMENT lib:'libiomp5mt.lib'
    
    IMPLICIT NONE
    REAL, Dimension(2,2) :: p,vr
    REAL, Dimension(2) :: w

    p = RESHAPE([0.7, 0.3, 0.5,0.5],[2,2])
     
    CALL EVCRG (p,w,vr) 
    
    WRITE (*,*), w
    WRITE (*,*)
    WRITE (*,*), vr
    
    END PROGRAM test_evcrg


How can I fix this problem.
Thanks!