From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 125945 invoked by alias); 3 Jul 2018 12:46:45 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 125844 invoked by uid 89); 3 Jul 2018 12:46:44 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=2.3 required=5.0 tests=BAYES_50,HTML_MESSAGE,KAM_NUMSUBJECT,MSGID_MULTIPLE_AT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=H*UA:Office, H*x:12.0, H*UA:12.0, HX-Priority:Highest X-HELO: rgout0801.bt.lon5.cpcloud.co.uk Received: from rgout0801.bt.lon5.cpcloud.co.uk (HELO rgout0801.bt.lon5.cpcloud.co.uk) (65.20.0.148) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 03 Jul 2018 12:46:40 +0000 X-OWM-Source-IP: 81.153.171.113 (GB) X-OWM-Env-Sender: frank.shed@btinternet.com X-VadeSecure-score: verdict=clean score=0/300, class=clean X-SNCR-VADESECURE: CLEAN Received: from youre6f02835ae (81.153.171.113) by rgout08.bt.lon5.cpcloud.co.uk (9.0.019.26-1) (authenticated as frank.shed) id 5AF3282C04F03A7E for fortran@gcc.gnu.org; Tue, 3 Jul 2018 13:46:37 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btinternet.com; s=btcpcloud; t=1530622000; bh=UbJvZvJdcsjXzBzwYa2pR7J/K/1U1G90okh7QOH/kUo=; h=From:To:Subject:Date:Message-ID:MIME-Version:X-Mailer; b=odJ7xygH5XTs4mG38J3oJWldQ8vX13LhimTweStXP5UJzeDcoJSNQTQZ/s2+ikgrjNe0/fpgDb0xzywOPWqwHXM70B9qG/2fY805My5TdX2zVOzfA56474F9Osk2ogqWB8vWG7/3QVFqMalfos/XuNC1YrYV05+/TdmwUNSb4vA= From: "frank.shed via fortran" Reply-To: "frank.shed" To: Subject: A novice really trying to run MinGW to compile FORTRAN 77 Date: Tue, 03 Jul 2018 12:46:00 -0000 Message-ID: <000301d412cb$df1bf740$9d53e5c0$@shed@btinternet.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-SW-Source: 2018-07/txt/msg00001.txt.bz2 Hallo, Can you help me please. For a task I'm doing I have managed to get a software program, which is quite old and written in Fortran 77 computer language. The program runs ok on a Windows system provided you have a GFortran Compiler. I have downloaded the Fortran Compiler (MinGW) and installed it on my laptop Windows 10. To demonstrate it is installed there are a couple of simple checks to show the software version number and separately a "help" page. Both these work ok. I got some instructions for this from the "MinGW" website. I have also copied down a very simple Fortran program, "hallo.for", three lines of text, and loaded them into a folder I newly opened called "programs", this is inside the MinGW directory, which as advised, is on the main "C" drive. The program run in DOS, by the command prompt. 1.) At the command prompt I type cd C:\ then press enter this gives C:\ > 2.) I then type cd C:\MinGW\programs then press enter this gives C:\MinGW\programs > this is the folder where my simple "hallo" program is 3.) I then type gfortran -ffree-form hallo.for -o hallo.exe this is the instruction given to access the file, compile and run the simple "hallo" program It doesn't work I get the error message -- gfortran : error : hallo.for : no such file or directory For line item 3.) above I also tried gfortran hallo.for -o hallo.exe This doesn't work I get the error message -- gfortran : error : hallo.for : no such file or directory I have also tried gcc -ffree-form hallo.for -o hallo.exe and gcc hallo.for -o hallo.exe This doesn't work I get the same error message for both -- gcc : error : hallo.for : no such file or directory gcc : fatal error : no input files compilation stopped I have tried many alternative ways to do this but the instructions provided by MinGW are wide-ranging, covering many different operating systems and different computer languages. I really would like your help and think I am doing something very stupid and basically wrong. Regards Frank