From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailout-l3b-97.contactoffice.com (mailout-l3b-97.contactoffice.com [212.3.242.97]) by sourceware.org (Postfix) with ESMTPS id 15C043858D1E for ; Sun, 1 Jan 2023 11:41:50 +0000 (GMT) Received: from hologram (hologram.co-bxl [10.2.0.17]) by mailout-l3b-97.contactoffice.com (Postfix) with ESMTP id E943841E for ; Sun, 1 Jan 2023 12:41:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1672573306; s=20210208-e7xh; d=mailfence.com; i=hanslonsdale@mailfence.com; h=Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Subject:From:To; l=674; bh=6Qol89rAtJUXtlEhfHuM9W2IEvkEI0uxFQrZyEVMJuQ=; b=th2W/rzI51BaNtsacpwbmZbyoB4E+m6camn+rbUECvACIYUcdpRjyosVcyjdOs9l 5bXVhNIw2YTmRcCMTEBVbEDxb8QW+QB2cXOp9tQrSF50OxMnYYaCkRoQ9CfR3c8YocD ckue9g3ZWy1fWi+IXF2M3Jeoh5gK+V5MoBxP/TyW9I7FYdj+g5bfml8mgNWJ7vtohqA rQzdtbJXlHfUyq5uduwXeu2Qhlowkw2pbbrvCr2D/ULAaVKHp82xs8lAh1LJfI6M0IY 7IC81F5JX/Fx8YOO6f3rorXyp/kB6Jeb4A6wW43Z/GxSnHr7qgppyNES9Z9iikDPIbb NujLbMYBKA== Date: Sun, 1 Jan 2023 09:52:25 +0100 (CET) Message-ID: <166133795.746116.1672563145928@ichabod.co-bxl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Compiling file with subroutines using gfortran From: Hans Lonsdale To: Gcc Help X-Mailer: ContactOffice Mail X-ContactOffice-Account: com:377787701 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: I want to compile a file containing a number of subroutines. I am using the command gfortran -O3 -ffree-form -o myfile.f But getting problems with recursive and END PROGRAM statement. All I want is making the object file. 44 | recursive subroutine quicksort (array) | 1 Error: Unclassifiable statement at (1) myfile.f:112:3: 112 | end subroutine quicksort | 1 Error: Expecting END PROGRAM statement at (1) myfile.f:122:35: Have done gfortran -O3 -ffree-form -o myfile.f The command is supposed to make the object file, but I get errors with END PROGRAM declaration. -- Sent with https://mailfence.com Secure and private email