public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* gfortran and lapack problem
@ 2014-10-20  6:35 Christian
  2014-10-20  8:10 ` Tony Kelman
  0 siblings, 1 reply; 5+ messages in thread
From: Christian @ 2014-10-20  6:35 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-10-20 16:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-20  6:35 gfortran and lapack problem Christian
2014-10-20  8:10 ` Tony Kelman
2014-10-20 15:42   ` Christian
2014-10-20 15:57     ` Marco Atzeri
2014-10-20 16:25       ` Christian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).