News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Lapack Configuration on Win7

Started by Lory88, March 22, 2013, 07:20:19 PM

Previous topic - Next topic

Lory88

Hi all guys. It's my first post over there. I've written a Fortran program under Linux OS and now I need to get a Windows version of it. I always used C::B for small and not too difficult C or C++ program. Now, in my Fortran program I need to include some external libraries like BLAS and LAPACK. I surf the Internet but I do not found a clear and easy way to do so, maybe because I'm quite a newbie in this field.
I downloaded precompiled BLAS and LAPACK libraries from here http://icl.cs.utk.edu/lapack-for-windows/lapack/#libraries_mingw and I tried to follow the steps described converting the operation in C::B.
I put .dll and .lib files in the same folder of my project and in C:\Windows\System32 directory. Then I clicked on my project and go to Build Options windows. In liker tab I added the .lib files in my project folder. Then I add to PATH variable the MinGW folder as described in point 4.
Whene I try to build the main of my project I get the following errors:

ld.exe||cannot find -lblas.lib|
ld.exe||cannot find -llapack.lib|
||=== Build finished: 2 errors, 0 warnings (0 minutes, 0 seconds) ===|

Where is the mistake?

Thank you to all those who can help me!

Bye

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Lory88

Oh thank you. Now it works. But I can't explain myself why it wasn't working before since I was following the same steps. By the way thank you a lot.