delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/11/24/16:29:18

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:date:message-id:subject:from:to
:content-type; q=dns; s=default; b=tgocOIGYPPP9KMazJ0gBWY/KT2zX9
gEOH8MZeilOnxHw8t3mc/ovO/fmvOuTZYRPaFIcRk5vr06b7famkD9oOcupVCCQx
h0tsAU08gG5szPpNYA7Qh3Hrbpd7H5qNxCh/gGw4NEkH/8YC8h3f15+2Jgzzu9Cy
KjEmt5ABZE9fBg=
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:date:message-id:subject:from:to
:content-type; s=default; bh=VQxIPkGuS6Z0tZymumknHEyneVs=; b=eGb
1WYPRAoR8IBiYBrjaYc+jSLb1UK1ciTYZWczvtFy5ymfPmE84lkHTvFzkQpL5Duq
po9bIQ0HmvX88ZCrGKD8TdMO2LuRf6VeA0Zqz/0PI1MAmg63/yUOkDldTBsjsgOM
wF+bysvdxrThhrnlRgg6NTokEJORu974ofDpF3Io=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2
X-HELO: mail-la0-f46.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=AqLLJDtbkF5zx9RLgWNK/vmaHpD+IetMFY7qZHDH0CI=; b=fOMHzCmj2N6Tgktx8dnbtrnyJagWVxktXVEh31JRcLK9NCD0zEvl6cDmeW37cr4CKv 9C0jaghd3ChPF01Vh4mTZGXlSP9rxc8SKJIl2UJ/7kXdr5+VxhXTSgK7JdTfcnihOqJd 6MWtMCOT0K3zIAkPHcpv9mg4B7GVke8qI0uAsUdv1v2ibLZCT7qkDF3APLL4ZWhVwv+2 5Wo2WQa/kBiAOAe9H3A1TbP1Ib58+fNUj9rdlQBG+EwkGA68NS+MSWRdCbRqErGvsdXS 8QNMydh7cFhpQRJlmtmPuNdSK7p7j/ZYeLxCsg1aRvNboxwxzTz4vfG/4nut5fYB0dCR 25Vw==
X-Gm-Message-State: ALoCoQn2MQmrWeuVjXQFX+MuSW9VF58agxBksCUzzUQ4rD/S3hGHiSkmUQc0WdwPs2I22xI9/K+F
MIME-Version: 1.0
X-Received: by 10.112.147.225 with SMTP id tn1mr22686059lbb.37.1416864537701; Mon, 24 Nov 2014 13:28:57 -0800 (PST)
Date: Mon, 24 Nov 2014 13:28:57 -0800
Message-ID: <CAGeTGVhs4uQQdzKe+bi6AvNYFQrVa5ZPWPbzg4=nUDMBju+DFA@mail.gmail.com>
Subject: Can gFortran Link Against Cygwin netCDF 4.3.1.1 Library?
From: John Kim <jbkim AT dgvm DOT us>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

Hi,

I have a C program that uses a custom Fortran library and the netCDF
API. I'm trying to link the C and Fortran object files with the Cygwin
netCDF 4.3.1.1. library, like this:

   gfortran *.o libfortran.a -L"/cygdrive/c/Program Files (x86)/netCDF
4.3.1.1/lib" -lnetcdf

But it says "undefined reference" to all the netcdf API functions. The
netCDF installation I have is from the Cygwin Setup.exe installer. Do
I need to compile the netCDF source in a special way to make it
visible to the gfortran linker? Compiling netCDF is a major task so I
thought I'd ask before I give that a try....

Thanks,

-John

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