X-Recipient: archive-cygwin@delorie.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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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.LFD.2.11.1506232245380.28689@asterix>	<alpine.LFD.2.11.1506241021130.22435@asterix>	<558B4739.9050303@molconn.com>	<alpine.LFD.2.11.1506242011160.26805@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.markus895@gmail.com>
To: Andrey Repin <cygwin@cygwin.com>, balay@fastmail.fm
Cc: LMH <lmh_users-groups@molconn.com>
Content-Type: text/plain; charset=UTF-8
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

