G95 - Missing lapack, blas libraries

180 views
Skip to first unread message

JohnSmith

unread,
Aug 13, 2012, 2:40:47 PM8/13/12
to gg...@googlegroups.com
I just started working in FORTRAN. I installed g95-MinGW compiler on a 64-bit Windows XP machine. I tried to run an example program using the make command. I get the following errors:

ld: cannot find -lblas
ld: cannot find -llapack

I am guessing the lapack libraries are missing. How do I go about installing the missing libraries. Can someone provide me with step by step instructions? Thanks in advance

psycho_dad

unread,
Aug 13, 2012, 3:48:20 PM8/13/12
to gg...@googlegroups.com
Hey dude,

I'm not sure if you can find pre-compiled libs for MinGW and XP, so your best bet would be to google it thoroughly. If you decide to compile LAPACK and BLAS from scratch and you're feeling *brave*, then:
1) Download the source code from here:
http://www.netlib.org/lapack/#_lapack_version_3_4_1
2) Follow the instructions from here (check the part where it says installation):
http://www.netlib.org/lapack/lug/
3) For LAPACK related related questions, please go the appropriate forum:
http://icl.cs.utk.edu/lapack-forum/

By the way, I'm just stating the obvious here, but if it's possible then try using Linux, as you can definitely can find pre-compiled libs or if you insist on using XP (company policy etc) consider installing Cygwin. Google both stuff for more details.

Good luck and I hope this helps!

Cheers
Reply all
Reply to author
Forward
0 new messages