Author Topic: Lapack Configuration on Win7  (Read 7507 times)

Offline Lory88

  • Single posting newcomer
  • *
  • Posts: 3
Lapack Configuration on Win7
« on: March 22, 2013, 07:20:19 pm »
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

Online stahta01

  • Lives here!
  • ****
  • Posts: 7594
    • My Best Post
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Lory88

  • Single posting newcomer
  • *
  • Posts: 3
Re: Lapack Configuration on Win7
« Reply #2 on: March 24, 2013, 11:06:09 pm »
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.