Hi
I've downloaded LAPACK for Windows. Now I'm trying to link the provided LAPACK libraries to my application (a MATLAB dll), to no avail. The compiler/linker suite I'm using is Microsoft Visual Studio 2008 Express Edition. My OS is Windows Vista.
I have the options -llapack and -lblas set, and the linker definitely finds the libraries (it was complaining before I pointed the linker to the correct directory). Now I get the following errors:
sba_lapack.obj : error LNK2019: unresolved external symbol _dtrtrs_ referenced in function _sba_Axb_QR
sba_lapack.obj : error LNK2019: unresolved external symbol _dorgqr_ referenced in function _sba_Axb_QR
sba_lapack.obj : error LNK2019: unresolved external symbol _dgeqrf_ referenced in function _sba_Axb_QR
sba_lapack.obj : error LNK2019: unresolved external symbol _dpotrs_ referenced in function _sba_Axb_Chol
sba_lapack.obj : error LNK2019: unresolved external symbol _dpotrf_ referenced in function _sba_Axb_Chol
etc.
I think it's because the compiler is adding the preceding underscore to the function name. However, I can't find an option to stop it from doing this.
If anyone knows how to solve this please let me know.
Regards,
Oliver

