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=sYc H1X98AccUgIOj7iKrb6fDX+oNmN7x3vMg+/FxZEtFK13aL4KGTUeHdE8RT4gX7nm deqDNp2raLYBHQO12x/oOHh3pCZVt/LmyMlvsNFOyHB0CqWcwYklSPKaNnHQIEhk elCl154e06ZYx/B2WAFlNLo4n2AfVQ+Mw8YhPF/0= 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=13pXFYTvH 4NBLIzjEADwYOAa7mk=; b=qq5i0fH7G6MB4iIDRjhuMc1MTs/0mEsnDXmxwOk4L eovWNsmfiepepWT6cIzMTPGTPJ9g3BGW7LfrixD7Zy6Efnvbli3Qy1GML0OadIu5 P77N00jYpkWJadt0OwLZiB7GrpcOV/pQJJDwqHBHmxdVtA8bZhQ75YC7RZaDNCe/ ew= 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.9 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: [XYKtau3vZA3pVk1ASRDyXr8zgdzyEdiX] Message-ID: From: Sonya Blade To: "cygwin AT cygwin DOT com" Subject: Linking Problems and undefined references to standart functions Date: Tue, 30 Apr 2013 08:18:26 +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 r3U7IfHT028062 Dear All, I tried to use the Petsc library, compiled without any error during cygwin terminalcompilation, with gfortran (which works in Code Block editor) and tried to run some of the examples which  flawlessly works in C but not in gfortran.  Although I used and set the same library in linking, headers and search as is in C when it  comes to gfortran it raises the following errors. I don't think that its related to the Petsc  instead due to some wrong configuration I get such and error. Does any body can help? cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/ftn-custom/zstart.c:262: undefined reference to `__getreent' /cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/ftn-custom/zstart.c:263: undefined reference to `__getreent' C:/Users/...../Downloads/petsc-3.3-p6/arch-mswin-c-debug/lib/libpetsc.a(mal.c.o): In function `PetscMallocAlign': /cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/memory/mal.c:30: undefined reference to `memalign' C:/Users/...../Downloads/petsc-3.3-p6/arch-mswin-c-debug/lib/libpetsc.a(pinit.c.o): In function `PetscInitialize': /cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/objects/pinit.c:650: undefined reference to `__getreent' /cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/objects/pinit.c:651: undefined reference to `__getreent' C:/Users/...../Downloads/petsc-3.3-p6/arch-mswin-c-debug/lib/libpetsc.a(pinit.c.o): In function `PetscFinalize': /cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/objects/pinit.c:1002: undefined reference to `__getreent' /cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/objects/pinit.c:1130: undefined reference to `__getreent' /cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/objects/pinit.c:1151: undefined reference to `__getreent' C:/Users/...../Downloads/petsc-3.3-p6/arch-mswin-c-debug/lib/libpetsc.a(mprint.c.o): In function `PetscSynchronizedFGets': /cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/fileio/mprint.c:661: undefined reference to `__errno' C:/Users/...../Downloads/petsc-3.3-p6/arch-mswin-c-debug/lib/libpetsc.a(options.c.o): In function `PetscOptionsValidKey': /cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/objects/options.c:256: undefined reference to `_imp____ctype_ptr__' /cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/objects/options.c:257: undefined reference to `_imp____ctype_ptr__' C:/Users/...../Downloads/petsc-3.3-p6/arch-mswin-c-debug/lib/libpetsc.a(options.c.o): In function `PetscOptionsInsert': /cygdrive/c/Users/...../Downloads/petsc-3.3-p6/src/sys/objects/options.c:599: undefined reference to `__getreent'