delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/06/25/03:16:01

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:cc:content-type; q=dns; s=default; b=
xCw7Mr+gIGj3sIl2OuDeJom6ulE+9zzrwTzJWtSTBwVrTO+GEjWiVhvKvylGsbUv
0ObwWkxbhZeqTOr9QlFvv/DxzGW3pY7GPjebpVdp96ABN9/t8enytPKfhdP+mRYW
MPM5seN/awRNtW2scFPVuXbvSDTOOiXErJdORk+m8pg=
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:cc:content-type; s=default; bh=Gj8n2
OS9Lv4xNkBzFUlQpTDcOvI=; b=wRlUSPRU0eeVfWE77dhD4Ei+PenMHa5et2E2T
P5BvygdYJ5vGT2La2G/7uNHUeYwxrtLCAVQi6hImsm3immB2AOR73RNKkqHWmd7K
XUGObBQUVQU833CqzP3Pvon2Ut5wUToIh64Ta7J/Zr336J6f/LTiMJyBv7Vb9m8a
XGmWqc=
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=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-wg0-f48.google.com
MIME-Version: 1.0
X-Received: by 10.180.89.66 with SMTP id bm2mr3095124wib.6.1435216541888; Thu, 25 Jun 2015 00:15:41 -0700 (PDT)
In-Reply-To: <alpine.LFD.2.11.1506242011160.26805@asterix>
References: <alpine DOT LFD DOT 2 DOT 11 DOT 1506232245380 DOT 28689 AT asterix> <alpine DOT LFD DOT 2 DOT 11 DOT 1506241021130 DOT 22435 AT asterix> <558B4739 DOT 9050303 AT molconn DOT com> <alpine DOT LFD DOT 2 DOT 11 DOT 1506242011160 DOT 26805 AT asterix>
Date: Thu, 25 Jun 2015 09:15:41 +0200
Message-ID: <CAMCbSMo4Lh6PnFKmqEmGN9wG1jkFsCUDO6Le12qdrZTzoRN5eQ@mail.gmail.com>
Subject: Re: using fortran common block from dll created by gfortran
From: Arjen Markus <arjen DOT markus895 AT gmail DOT com>
To: Andrey Repin <cygwin AT cygwin DOT com>, balay AT fastmail DOT fm
Cc: LMH <lmh_users-groups AT molconn DOT com>
X-IsSubscribed: yes

Hi Satish,

I would have expected the /cb/ notation to work, but if you export the
individual variables instead, it does get compiled. However, my test
program shows that the data in the main program are not the ones in
the DLL, even though I applied both DLLEXPORT and DLLIMPORT.

It might be better to use "accessor" functions/routines to get the
data from the common blocks in the C layer you are using.

Regards,
Arjen

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