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:message-id:from:to:subject:date:content-type
	:content-transfer-encoding:mime-version; q=dns; s=default; b=U8U
	QKMsBgPjmXwQrk7XPo3MlsOcuZbDESdsh+iEWu1VM81ONbC5udlVGCBHB/obvJ4Q
	YSH+QXikmnglmax4Y3vDqU5U8Q3pgAYcPZzziGRxyLjq3FxIpgUk+BndjaSnb4ry
	76pdbFE3iYeGSF8hpG5P3qpoo98v7AAPrdXTSAfQ=
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:message-id:from:to:subject:date:content-type
	:content-transfer-encoding:mime-version; s=default; bh=4+bo+enwp
	1Ya/CtNjWfFbcgkO2o=; b=EpiH9Rhv//cPDctXomMLYvywIunjN0TzmpmCSbgs6
	NlTeqGTY07ZGche4QFU3kNqW/E1me5mUTOU+ON1kYiAQsFsJLbBe/8i1NjvM6ivh
	sGIzzhrdDOqMURh60v6wxQy6kQh+0/IAN206nI8FKmLp5AYb28UkvaWRRcZYtN3Y
	uk=
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.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.1
X-EIP: [9J+YSCMKzpk4vNN/GB6yNvY37WiIxuWy]
Message-ID: <DUB119-W3559C6553ED0FBB38C90F8C8B30@phx.gbl>
From: Sonya Blade <sonyablade2010 AT hotmail DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: Linking Problems and undefined references to standart functions
Date: Tue, 30 Apr 2013 11:48:12 +0100
Content-Type: text/plain; charset="windows-1254"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id r3UAmQfF003431

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



One side note is that:�After googling for a while it revealed that I�
should add the libcygwin.a�to the linker search paths, after adding�
this compiler stops the complaints and�application compiles but this
time raises the segmentation fault. Which I believe�is unallocated�
memory reference at the PetscInitialize.

I'm really suprised by that and I don't have any other option to try .
Your guidance will be appreciated.