Visual Studio 2008: unresolved symbols

Open discussion regarding features, bugs, issues, vendors, etc.

Visual Studio 2008: unresolved symbols

Postby trinita » Mon Feb 28, 2011 1:46 pm

Hi

I am trying to follow the tutorial : http://icl.cs.utk.edu/lapack-for-windows/lapack/

i downloaded the prebuilt libraries BLAS.lib and LAPACK.lib (at the moment i dont need optimized blas)

i created a visual studio 2008 console project, and added the 2 libs above among the Linker->Input->Additional Dependencies

i then copy/pasted the source from http://www.cs.rochester.edu/~bh/cs400/lapack_tut.c

then i changed
void dgesv_( )
void dgels_( )

to
extern "C" void dgesv_( )
extern "C" void dgels_( )


and then i compiled, but when i compile, i get:

1>foobar.obj : error LNK2001: unresolved external symbol _dgesv_
1>D:\local2\Software\lapack\test\foobar\Release\foobar.exe : fatal error LNK1120: 1 unresolved externals

I am not sure what i am doing wrong.

Also, for the gotoblas, the page mention a .dll library that is not present in case of the default BLAS.lib. Is that correct?

thanks in advance!
trinita
 
Posts: 4
Joined: Mon Feb 28, 2011 1:34 pm

Re: Visual Studio 2008: unresolved symbols

Postby admin » Mon Feb 28, 2011 2:51 pm

You need CLAPACK that is in C.
LAPACK is in Fortran and it requires the Intel Compilers.

Take a look at http://icl.cs.utk.edu/lapack-for-windows/clapack/

GotoBLAS is an optimized BLAS, I recommend first to start to link with the Reference BLAS.
Once it works, you can try to build GotoBLAS under Windows and link with it.
admin
Site Admin
 
Posts: 486
Joined: Wed Dec 08, 2004 7:07 pm

Re: Visual Studio 2008: unresolved symbols

Postby trinita » Tue Mar 01, 2011 6:18 am

Thanks a lot!
I didnt get the difference in the first place, i noticed the mention for intel compiler, but i saw that it supported visual studio C/C++ and i thought that was it,
as google didnt return the other page.

but now it works great! thanks again! :)
trinita
 
Posts: 4
Joined: Mon Feb 28, 2011 1:34 pm


Return to User Discussion

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 1 guest