- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there,
Imovied to virual fortran from other compiler. I had installed version 11. When I tried to run the a code example given by intel for Using BLAS Level 1 Routine , i got the following error.
Error 1 error LNK2019: unresolved external symbol _SCOPY referenced in function _MAIN__ Console2.obj
I think there is problem with the library linking. Please find the library copied from the compiler options below.
$(IFortInstallDir)lib\\ia32
$(VCInstallDir)atlmfc\\lib
$(VCInstallDir)lib
$(WindowsSdkDir)lib
Thanks in advance.
Regards,
Ravoof
Code:
program copy_main
real x(10), y(10)
integer n, incx, incy, i
n = 3
incx = 3
incy = 1
do i = 1, 10
x(i) = i
end do
call scopy (n, x, incx, y, incy)
print*, (y(i), i = 1, n)
end
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The link advisor tool at the top of the MKL forum will ask you the questions you haven't answered here, and suggest the libraries you should put in your command line, or in the VS library dependencies.
As scopy here could be written more efficiently in line
y(1:1+(n-1)*incy:incy) = x(1:1+(n-1)*incx:incx)
it's not one of the more important BLAS functions, but it will put you through the link advisor exercise.
As scopy here could be written more efficiently in line
y(1:1+(n-1)*incy:incy) = x(1:1+(n-1)*incx:incx)
it's not one of the more important BLAS functions, but it will put you through the link advisor exercise.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page