delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/05/01/07:15:38

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type
:content-transfer-encoding; q=dns; s=default; b=TPTXy8kojP6dzdQ2
h6y4VDalHIpnn7ZjX1H9eD7JdEmXeIo7IjKCBuJI+xEkudu68IuV2MorOvMQekO7
WrucbR4KfrleX4U+weCtaJx0aKWKPIxc9y9o3BNezz5xkqocV5juEtAd9ibqHriZ
dB0QU3ZxMN1xiGmmgC7aqZOcWqg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type
:content-transfer-encoding; s=default; bh=eIZCfTPF2iGebmPo3uWCBx
xq3sg=; b=nQGvHU9VwgBmmCEbWNYINlv8swnNLa/IMc5AQM5FSTvJQTWOT1laxK
G8NUXlXjO6oPJrf2ig9Ia4Xga4I3ePwNJWFez6DUoPokM3ASDh7nnREcE86iAWUa
fCmrIBBlPJRpGtTPucFvLc3I65DBxaIlq2+ODT4W/Vkzd2QMEbRZg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1
MIME-Version: 1.0
X-Received: by 10.180.72.227 with SMTP id g3mr28367165wiv.1.1367406920728; Wed, 01 May 2013 04:15:20 -0700 (PDT)
In-Reply-To: <DUB119-W3559C6553ED0FBB38C90F8C8B30@phx.gbl>
References: <DUB119-W3559C6553ED0FBB38C90F8C8B30 AT phx DOT gbl>
Date: Wed, 1 May 2013 13:15:20 +0200
Message-ID: <CAEhDDbDGHW0FUU=ekbOUVWOWWHnPNLOBytThkTLbgCRdUJ1Jag@mail.gmail.com>
Subject: Re: Linking Problems and undefined references to standart functions
From: Csaba Raduly <rcsaba AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r41BFZZG005845

Hi Sonya,

On Tue, Apr 30, 2013 at 12:48 PM, Sonya Blade  wrote:
> gfortran command to compile the code is as follow :
>
> gfortran.exe  -o bin\Debug\Petsc_Fortran.exe obj\Debug\main.o    C:\Users\....\Downloads\petsc-3.3-p6\arch-mswin-c-debug\lib\libpetsc.a C:\cygwin\lib\libX11.a C:\Users\mehmet\Downloads\libblas.lib C:\Users\.....\Downloads\liblapack.lib C:\Users\....\Downloads\liblapacke.lib C:\cygwin\lib\libcygwin.a
> Output size is 16.90 MB

I'm not familiar with gfortran, but it seems to me that you are mixing
Cygwin (libpetsc.a, libX11.a, libcygwin.a) and non-Cygwin libraries
(libblas.lib, liblapack.lib). This will not work.
Are you really using Cygwin's gfortran?

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019