www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/07/13:43:53

From: "Christopher Nelson" <paradox AT gye DOT satnet DOT net>
To: <djgpp AT delorie DOT com>
Subject: Re: compiling fortran?
Date: Wed, 7 Apr 1999 11:06:02 -0600
Message-ID: <01be8118$ea65f060$LocalHost@thendren>
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Reply-To: djgpp AT delorie DOT com


>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.
>


first of  all, did you download the Fortran compiler?  if not, you probably
don't have the program it wants.  you see, gcc is the FRONT END, but it
requires a middle part to compile the actual language, then it outputs it to
a back end (the assembler) which runs it through and outpus compiled code,
which then can be linked.

nextly, my version of RHIDE doesn't even have fortran listed under it's
syntax definition file (syntax.shl, which is under djgpp/share/rhide), so
you'll need to create one.  i had to to the same with Objective C.

also, if RHIDE doesn't have the definitions right internally to compile a
Fortran file, it won't compile correctly, because RHIDE doesn't know where
to send it. :-)

        -={C}=-

- Raw text -


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