From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AAtsBjQIk2DuQgEAgWs5BA (envelope-from ) for ; Wed, 05 May 2021 23:03:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 6NgPAjQIk2DvHwAAB5/wlQ (envelope-from ) for ; Wed, 05 May 2021 21:03:48 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5A32C10BF0 for ; Wed, 5 May 2021 23:03:47 +0200 (CEST) Received: from localhost ([::1]:60266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leOgM-0003d5-7i for larch@yhetil.org; Wed, 05 May 2021 17:03:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37560) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leOfC-0003bK-Rm for emacs-orgmode@gnu.org; Wed, 05 May 2021 17:02:34 -0400 Received: from mout.gmx.net ([212.227.17.22]:44843) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leOfA-0007LY-Ef for emacs-orgmode@gnu.org; Wed, 05 May 2021 17:02:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620248550; bh=j426YibBzvQ1+YPcDJbqZvDPwLlezsdaC8sturRdWJ4=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=BHd3alQ23yh1KXkiI0Dm+f68pB82yw9PXmCIvja5eX1DR3PgfrBNNWKLAQK+4LpCM AmFehNruzvDIZTawWR5RmVuZJgCHXvnea5rX26k/DbsG2PaLjj0YzWjcMGOdqozk8m iv6jQVj6koGxhG6ov5uFTG+cClkl7C3BsJj53jcw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs16.server.lan [172.19.170.184]) (via HTTP); Wed, 5 May 2021 23:02:30 +0200 MIME-Version: 1.0 Message-ID: From: pietru@caramail.com To: "Dr. Arne Babenhauserheide" Subject: Re: orgbabel with fortran code Content-Type: text/plain; charset=UTF-8 Date: Wed, 5 May 2021 23:02:30 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <87eeel2c4u.fsf@web.de> References: <87pmy53b5x.fsf@web.de> <87eeel2c4u.fsf@web.de> Content-Transfer-Encoding: quoted-printable X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:hOEcebvl4j3c4bw/IExb+bigxZQmgWmej0kNLVqZd5sVMxdzmilJNvKKqELpnBlrWsA4+ qzMuzAVp26IIV89hpG5aoyfx8tFOc5JLdmtz0w8E49A31icAhD1aTcQvLayRedBRH8nKkhNyh1/X R4DYsOeL/afWKyTbx5fkuaEr/AjeM5+Qjqsn91/3oZr4Jx0CBYqWQnlXXglov+ZXVlslCVcvV8r4 FJq40GBAbohynSapd7QFOPsi2wby80WELhJYmzicR+ufpe1x1G4nno6F5IBuEnJsFL4PZWpnJ3yr lg= X-UI-Out-Filterresults: notjunk:1;V03:K0:5tmPcY9P4hw=:GuXUHTTdYChWe/2LY6/zA3 x6sfRG6wTsrevyTpfLrprJ36Z1Mp16KO6I7YtywigRlls+pu9y4URUYug1m1QtY+Rw4a7y8eW glxmg9IMN84mTbOEwJgBZwgamwIV+0A3WvZSV0lCAn4X4nNJynIz9nG1p+qbmGCxopNK6Ub+s h+9TP9y+p4aEVRF/TarUqBKEHL8+lIXTPx3VUbelLZCOJVbI9tcVRA8cVQX5nVYuqQv5GuYwq 2M1b46fPIinI4Np9zAB8CBRnpudYCOfgfqICkjeHQ/1t6S4EFtcPTY6X6grmQuGMVW2Ap2lqj M3DGlaVa8D7+APjV3uQp8RdPHgyD3F3Fn6x3REa+E1sBRcHmBIV53ieMJoSjTRnlGa7U8iyf7 qL+hsD+pLhaWY46EYEtZnO6JB7U+Umh40TIgcZclg9wcqw9V6k6BTlBA/ayLh8hqFo5++hYDe IXDDfw1CinaqLpo3bYOiZbnAqCiv/9Auq/9wmegj2sx2wVns2Q8Tj33k/4y5G4AyXjiW4CSu9 0HQhE7iKD+s1a31ST4/+nMld5SUTRIMlBwnX9KWszFSNZoLIWd8iRAS59RmHJRxUzk1gkYy4l EQyohSc+1x7skymUTa/Wstd8tlZz2Gw8hWUNIz76bHZfMP90TUuka60o1/s0tR3izozlrJLdM ARKQV4cS/ulY1gD14lzpdAYiQZK8bUIraga2Z6AEHXnxRK0ks0ep8VKT21dGHHiDEl5lo8dY4 yBuCRCyU6rY0RaRovRAuv+pARG4oPn2IqQSlP8xnEFdwgpKkjqubZ173eB5flOGsgix3RwYCX KHiOzqoihve8/0Rpqt/fvtmjVu1bSTTPl+y6c10ycsRPfcD+DfWID53apisslGMm1APDogK+V AAqa1gZZsgbC6LQ2tcTdNcyxS96ZpDcAxdZ65shAe1KnXAbLNY1QS3bY0niqgt Received-SPF: pass client-ip=212.227.17.22; envelope-from=pietru@caramail.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620248627; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=R/zleBhq64Jxhb3NIUxe4B6Fdc5uTOiVY/eEYz4gZH8=; b=KKU4bZ5sBfoR4bEvJdt2Vk8d443hrhAf3OBFKPa/VbEKbEo4H8ljiiwr5CPP0wZCSRwfxR k3+5f2i3joSSx4mR8lyweQ55tNQd6YJqoR7F8PwAPu7yG6ZrVfCoEXCn8CcefIAQqJF8j7 TldYK4DvstGRjaURof86liPsat7bjSc1to3AW07O40hrOO3qlzL8IO2TFlkJKyNMLYv8he WkHZT1Jpt7Tb+EKGZHy/t4eGKjKvN7V/IW/ua2wx6u2Ycg3BAeVs0nh4VPxmtcv4RWHS3l L8mryMvyyOmLpuUXq5YEs1vnYGbhGzmamComg1gqFuGj7bnlQv1V0xbQ4EUTcA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620248627; a=rsa-sha256; cv=none; b=PsTYDi7XyoSiWOeBaF2OSv+Dkl+CrDWEgSzuj9hqSXzSJ3vow+YWoVucemm10pSwSz4UJu a/GtGNrzQrORLLv6j/ItzEL9RU0McjfYJZcrn/OLiV92tJkwL8MapBPkihBXRBMfYtL7b1 p4FAxlWbyvnlWZHvQUpUpUYezDQcghBC1gw8jPYRiYQxU6zFYB0HvlrVDV6UbKpS6E9Bnu cBOw/bNjvi4GLFIFCrcet7LcVIARd7+AOSBlCXVtD7NHLJoNISGD5qG403frMLe2bHp6tH Ouls3L9RdsJOnkvPeVHiUbZ4+D1k8Q1BwASTT6z9yw4bDntA0P+JPRfmyzBXBw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=BHd3alQ2; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.07 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=BHd3alQ2; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=caramail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 5A32C10BF0 X-Spam-Score: -2.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: zQM7FSit0o4d Have had a first go with your code I wrote the following, then went inside the code and slammed "C-c C-c"=20 #+BEGIN_SRC fortran :tangle fortran-comline=2Ef90 program cli implicit none ! no implicit declaration: all variables must be declared character(1000) :: arg =20 call get_command_argument(1, arg) ! result is stored in arg, see=20 ! https://gcc=2Egnu=2Eorg/onlinedocs/gfortran/GET_005fCOMMAND_005fARGUME= NT=2Ehtml =20 if (len_trim(arg) =3D=3D 0) then ! no argument given write (*,*) "Call me --world!" else if (trim(arg) =3D=3D "--world") then call get_command_argument(2, arg) if (len_trim(arg) =3D=3D 0) then arg =3D "again!" end if write (*,*) "Hello ", trim(arg) ! trim reduces the fixed-size array to non-blank letters end if end if end program #+END_SRC And then I wrote this, went inside the code and slammed "C-c C-c"=20 #+BEGIN_SRC sh :results output :exports both gfortran -std=3Dgnu -O3 fortran-comline=2Ef90 -o fortran-comline =2E/fortran-comline =2E/fortran-comline --world World =2E/fortran-comline --world #+END_SRC But I am getting some major whining /usr/lib/gcc/x86_64-linux-gnu/7/=2E=2E/=2E=2E/=2E=2E/x86_64-linux-gnu/Scrt= 1=2Eo: In function `_start': (=2Etext+0x20): undefined reference to `main' collect2: error: ld returned 1 exit status sh: 2: =2E/fortran-comline: not found sh: 3: =2E/fortran-comline: not found sh: 4: =2E/fortran-comline: not found > Sent: Thursday, May 06, 2021 at 7:50 AM > From: "Dr=2E Arne Babenhauserheide" > To: pietru@caramail=2Ecom > Cc: emacs-orgmode@gnu=2Eorg > Subject: Re: orgbabel with fortran code > > pietru@caramail=2Ecom writes: >=20 > > Have you got exomples with fortran code yourself? I would like to scr= utinise them=2E=20 >=20 > I have this, but I no longer know whether it actually executes fortran > inline or only tangles it: >=20 > https://www=2Edraketo=2Ede/files/2017-04-10-Mo-fortran-commandline-tool= =2Eorg > https://www=2Edraketo=2Ede/files/surprises=2Eorg >=20 > From > https://www=2Edraketo=2Ede/english/free-software/fortran > https://www=2Edraketo=2Ede/light/english/fortran-surprises >=20 > Best wishes, > Arne > --=20 > Unpolitisch sein > hei=C3=9Ft politisch sein > ohne es zu merken > Message-ID: <87h7jh2qh7=2Efsf@web=2Ede> >