[fortran]program spevdx use lapack95 integer, parameter :: N=4 real, dimension(N*(N+1)/2) :: Ap= & (/-4., & 2.,-6., & 0.5,2.,-8., & 0.,0.3,2.,-10./), & w(N) call spevd(Ap,w) write(*,10)(i,w(i),i=1,N) 10 format(1x,I3,2x,F10.5) end program spevdx [/fortran]Using the current version of IFort (Win32), which comes with the Lapack95 libraries precompiled, build using the command
[bash]ifort /Qmkl spevdx.f90 mkl_lapack95.lib [/bash]and run to obtain the results:
[bash]S:LANG>spevdx 1 -11.37360 2 -8.43331 3 -5.91824 4 -2.27485 [/bash]
That helped a lot, but when I try it with visual studio I get
"Generic procedure reference has two or more specific procedure with the same type/rank/keyword signature. [SPEVD]"
I haven't tried with the command line yet as you suggested because I'm not quite set up for that, but shouldn't it work with visual studio?
integer, parameter :: N=4
real, dimension(N*(N+1)/2) :: Ap= (/-4., 2.,-6.,0.5,2.,-8.,0.,0.3,2.,-10./),w(N)
Well, sure, but I don't have any other reference to spevd, and I've added all other unique use statements used eleswhere to the standalone project with no problems, so is it a library conflict?