Preview: how to install lapack for vs2008 on win7/64

Post here if you have a question about the installation process

Preview: how to install lapack for vs2008 on win7/64

Postby frumpel » Mon Jul 11, 2011 1:12 am

Hi All!

Ultimately I am trying to recompile lapackpp for win7/64 and without MinGW so I can port an application from XP. However, I seem to be failing at the most basic step: getting a LAPACK test app to compile using vs2008. I am not sure whether I just don't understand the tutorial(s) at

or whether they are just slightly misleading?

The LAPACK tutorial at would suggest that it should be possible to use visual studio with the LAPACK libraries simply by using
Code: Select all
extern "C"
in the function definition, but in VS2008 this seems to reproducibly lead to a link error
Code: Select all
lapacktest2.obj : error LNK2019: unresolved external symbol _dgesv_ referenced in function _main

Following the CLAPACK tutorial at works fine but there is no 64 bit library for download.

My head feels flat from banging against various surfaces so any pointers would be greatly appreciated!

Posts: 2
Joined: Mon Jul 11, 2011 12:42 am

Re: Preview: how to install lapack for vs2008 on win7/64

Postby admin » Mon Jul 11, 2011 3:11 am

Do you have the INTEL Compilers on your machine? The LAPACK library depends on those?
It is possible to just use the VS C compiler if you add the path where the INTEL libraries are.
Also, maybe you have a mangling problem, sometimes instead of degsv_, it is DGESV (in capital) that you should call. This is the case for me.

The extern "C" is required for a C++ program, you do not need it with a C program.

Site Admin
Posts: 588
Joined: Wed Dec 08, 2004 7:07 pm

Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest