Message-ID: From: "Andris Pavenis" To: "purple" , djgpp AT delorie DOT com Date: Wed, 7 Apr 1999 15:59:42 +0300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT 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 Precedence: bulk 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