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: List-Subscribe: List-Archive: List-Post: List-Help: , 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: References: Date: Wed, 1 May 2013 13:15:20 +0200 Message-ID: Subject: Re: Linking Problems and undefined references to standart functions From: Csaba Raduly To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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