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: 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 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: References: <558B4739 DOT 9050303 AT molconn DOT com> Date: Thu, 25 Jun 2015 09:15:41 +0200 Message-ID: Subject: Re: using fortran common block from dll created by gfortran From: Arjen Markus To: Andrey Repin , balay AT fastmail DOT fm Cc: LMH 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