From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2790 invoked by alias); 20 Oct 2014 06:35:34 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 2771 invoked by uid 89); 20 Oct 2014 06:35:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qc0-f182.google.com Received: from mail-qc0-f182.google.com (HELO mail-qc0-f182.google.com) (209.85.216.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 20 Oct 2014 06:35:32 +0000 Received: by mail-qc0-f182.google.com with SMTP id i17so3224008qcy.27 for ; Sun, 19 Oct 2014 23:35:30 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.224.120.1 with SMTP id b1mr33223508qar.19.1413786930412; Sun, 19 Oct 2014 23:35:30 -0700 (PDT) Received: by 10.140.43.196 with HTTP; Sun, 19 Oct 2014 23:35:30 -0700 (PDT) Date: Mon, 20 Oct 2014 06:35:00 -0000 Message-ID: Subject: gfortran and lapack problem From: Christian To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00257.txt.bz2 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