gfortran and lapack problem
Christian
cdeb77@gmail.com
Mon Oct 20 06:35:00 GMT 2014
Hi all,
I'm having problems setting up gfrortran with lapack. I installed
lapack and liblapack-devel from cygwin, but when I try to compile I
cannot get any result, although I don't get any error. This a very
simple code I'm trying to compile:
PROGRAM MyTest
IMPLICIT NONE
DOUBLE PRECISION :: A(2,2) = RESHAPE( (/1, 2, 3, 4/), (/2,2/) )
DOUBLE PRECISION :: B(2,1) = RESHAPE( (/5, 6/), (/2,1/) )
INTEGER, DIMENSION(2) :: ipiv
INTEGER :: n, info
EXTERNAL DGESV
PRINT *,'Printing the results'
CALL DGESV(2, 1, A, 2, ipiv, B, 2, info)
PRINT *, info
PRINT *,'End printing'
END PROGRAM MyTest
I compile it as gfortran MyTest.f90 -o MyTest -llapack -lblas. I don't
get any errors (it says "compilation finished"), but the output file
doesn't print anything (neither the strings, or the variable info). If
I comment the "CALL DGESV" line, it does print everything (with
info=0, of course).
Am I doing something wrong or is there any problem in my lapack installation?
Best,
C
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list