- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I know this topic has been treated several times here already, but I find that the approaches (and advice) differ in enough detail to make them unfollowable for me.
I want to use the LaPack routines GETRF (factor a matrix) and GETRI (invert a factored matrix). Here is my code excerpt:
USE LAPACK95
INTEGER :: IPIV(10)
REAL:: A(10,10)
...(define A)...
CALL GETRF (A, IPIV)
CALL GETRI (A, IPIV)
...(use result)...
END
I'm attempting to build/run this in Visual Studio. In my project, I have added the following files, linked from C:\\program files\\intel\\composer xe 2011 sp1\\...:
lapack.f90
libiomp5md.lib
mkl_core.lib
mkl_intel_c.lib
mkl_intel_thread.lib
The project will compile, but I get unresolved linker errors on the GETRF, GETRI calls.
Help!
I want to use the LaPack routines GETRF (factor a matrix) and GETRI (invert a factored matrix). Here is my code excerpt:
USE LAPACK95
INTEGER :: IPIV(10)
REAL:: A(10,10)
...(define A)...
CALL GETRF (A, IPIV)
CALL GETRI (A, IPIV)
...(use result)...
END
I'm attempting to build/run this in Visual Studio. In my project, I have added the following files, linked from C:\\program files\\intel\\composer xe 2011 sp1\\...:
lapack.f90
libiomp5md.lib
mkl_core.lib
mkl_intel_c.lib
mkl_intel_thread.lib
The project will compile, but I get unresolved linker errors on the GETRF, GETRI calls.
Help!
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Since you have USE LAPACK95, mkl_lapack95.lib (the library that was build along with lapack95.mod) has to be included in the link step. Use the Link Line Advisor for resolving such issues.
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