- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I'd have gotten some fortran code below:
!**********************
subroutine wrapdsyev_(job,upper,n,A,ldA,W,work,lwork,info) bind(C)
external dsyev
integer job, upper
character jobz,uplo
if(upper.eq.0) then
uplo = 'L'
else
uplo = 'U'
endif
if(job.eq.0) then
jobz = 'N'
else
jobz = 'V'
endif
call dsyev(jobz,uplo,n,A,ldA,W,work,lwork,info)
end
!**************************************
according above info, wrapdsyev_() need an external funciton dsyev(this is a function from libblas.dll, liblapack.lib,liblapacke.lib). I introduced the path of lapack lib files(corresponding to dll files) to my fortran program and built this funtion and got my A.lib file.
However, when I linked A.lib file to my C++ procedure, there comes an error "unresolved external symbol 'DSYEV' ", It's apparent that compiler couldn't find external dsyev, but I did not know what to do to solve this, and I'll be appreciate if someone can provide some solutions.
additional attachment: wrapdsyev_ is in lapackWrapper.f and lib files are added in both link->general->additional library directories and link->input->additional dependencies.
Link Copied
- 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