www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/07/09:02:04

Message-ID: <B0000082357@stargate.astr.lu.lv>
From: "Andris Pavenis" <pavenis AT lanet DOT lv>
To: "purple" <richard AT asbury DOT demon DOT co DOT uk>, djgpp AT delorie DOT com
Date: Wed, 7 Apr 1999 15:59:42 +0300
MIME-Version: 1.0
Subject: Re: compiling fortran?
In-reply-to: <923482365.1051.0.nnrp-12.c2de89e4@news.demon.co.uk>
X-mailer: Pegasus Mail for Win32 (v3.02b14)
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 7 Apr 99, at 11:09, purple wrote:

> sorry if this is a little off topic, but it's the most relevant newsgroup i
> could find.
> 
> i understand that the GCC compiler that is central to DJGPP is capable of
> compiling not only C and C++ but also various other languages such as
> Fortran, Ada, Pascal etc. I've tried writing a simple fortran program, using
> RHIDE, and telling it specifically to compile it as fortran, but it always
> says 'Bad command or file name'. The fortran source file is saved as a .fpp
> file and it is in a project. Another problem is that none of the source is
> highlighted like it would be if it was in C++ - the whole lot is written in
> yellow.
> 
> if anyone knows how to fix this, please enlighten me! :O)
> 

You must install fortran compiler:
	if You are using gcc-2.8.1 then download and install v2gnu/g770523b.zip
       if  You are using egcs-1.1.2 then download and install v2gnu/egcs/g77e112b.zip
(use 'gcc -v' to see version You have and don't mix versions)

Name Your Fortran files foo.f or like (extension .f).
After that RHIDE should be able to compile Fortran programs. However to debug
them with rhide You may need to set breakpoint in main program at first.

Syntax highlighting is more complicated as for C or C++ and is not provided
in rhide-1.4.7. (example '         DOI=1,3', one should recognize DO in this context
as DO statement, even when it's not separated)

Andris

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019