- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, I have a problem linking the mkl libraries with my program in FORTRAN. I am using the Intel Parallel Studio XE 2011 with VS 2010. The program is simple (see the code below):
Program SC
USE mkl95_lapack
implicit none
double precision Ht(2,2), ebb(2)
integer info
Ht(1,2)=0.50D+00
Ht(2,1)=0.0D+00
Ht(1,1)=0.50D+00
Ht(2,2)=1.50D+00
call syevd(Ht, ebb, 'N', 'U', info)
write(*,*) info
write(*,*) ebb(1), ebb(2)
end
I've read that to link tke mkl (when usin the Intel Compiler integated with VS 2010) one has to set Project>Properties>Fortran>Libraries>Use Intel Math Kernel Library to Parallel or Sequential. And so I did, but when I hit bulid an error occures:
error LNK2019:unresolved external symbol _DSYEVD_MKL95 refferenced in function _MAIN_
Can anyone help?
PS Sorry if this is a basic, not interesting poroblem.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ifort /Qmkl michal.f90 mkl_lapack95.lib.
Or, if usIng the IDE, add mkl_lapack95.lib as an additional library to use when linking.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page