novice needs help

This is a discussion on novice needs help within the Fortran forums in Programming Languages category; hello, i have been given a couple of small programs with a .FOR extension and advised that this program - http://gcc.gnu.org/wiki/GFortranBinaries would be the best way of compiling them. As i use windows XP i have installed the native version, but now i have no idea what the next stage of compiling the programs is - any help would be appreciated - e.g. what part to open. The programs are either just a .FOR file or have associated .1 and .2 or .IN associations i am more interested in the FOR and .IN files Many thanks for any help andy...

Go Back   Application Development Forum > Programming Languages > Fortran

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-26-2008, 01:59 PM
houseofavon@googlemail.com
Guest
 
Default novice needs help

hello,

i have been given a couple of small programs with a .FOR extension and
advised that this program - http://gcc.gnu.org/wiki/GFortranBinaries
would be the best way of compiling them. As i use windows XP i have
installed the native version, but now i have no idea what the next
stage of compiling the programs is - any help would be appreciated -
e.g. what part to open.

The programs are either just a .FOR file or have associated .1 and .2
or .IN associations i am more interested in the FOR and .IN files

Many thanks for any help

andy
Reply With Quote
  #2  
Old 08-26-2008, 03:25 PM
Sebastian Gallinat
Guest
 
Default Re: novice needs help

houseofavon@googlemail.com schrieb:
> hello,
>
> i have been given a couple of small programs with a .FOR extension and
> advised that this program - http://gcc.gnu.org/wiki/GFortranBinaries
> would be the best way of compiling them. As i use windows XP i have
> installed the native version, but now i have no idea what the next
> stage of compiling the programs is - any help would be appreciated -
> e.g. what part to open.
>
> The programs are either just a .FOR file or have associated .1 and .2
> or .IN associations i am more interested in the FOR and .IN files
>
> Many thanks for any help
>
> andy


I'm absolutely sure, gfortran has, like the most programs, a manual
which describes the usage of the compiler.
For those members of mankind, which does not like the manual, a short
explanation:

Use the cmd.exe and type: gfortran inputfile.for -o outputname.exe -Wall

means: Take the fortran inputfile.for and make an executable named
outputname.exe, and the switch -Wall says, that the compiler should give
a lot of warnings.

You can also have more then one input file, but they have to be for the
same program and should be given in the right order.

You can look at some switches by typing gfortran --help in cmd.exe, but
I think, you should read the manual.
Reply With Quote
  #3  
Old 08-26-2008, 06:36 PM
Ron Ford
Guest
 
Default Re: novice needs help

On Tue, 26 Aug 2008 10:59:42 -0700 (PDT), houseofavon@googlemail.com
posted:

> hello,
>
> i have been given a couple of small programs with a .FOR extension and
> advised that this program - http://gcc.gnu.org/wiki/GFortranBinaries
> would be the best way of compiling them. As i use windows XP i have
> installed the native version, but now i have no idea what the next
> stage of compiling the programs is - any help would be appreciated -
> e.g. what part to open.
>
> The programs are either just a .FOR file or have associated .1 and .2
> or .IN associations i am more interested in the FOR and .IN files
>
> Many thanks for any help
>
> andy


I always find that silverfrost makes a great second tool for windows. If
you can find Plato IV on the silverfrost site, you're more net savvy than
I, but having an IDE with a visual debugger is a good thing.

Usually, .for indicates fixed form, which is one of the options plato gives
when you create a new file. I think gfortran has a differing
interpretation with fortran filetypes; I guess I better claim that
silverfrost thinks that .for is fixed form.

..in sounds like an .ini file, probably created the program. You look at
the characteristics of an .ini file to see how to code one that is
appropriate for your target environment.
--
Unquestionably, there is progress. The average American now pays out twice
as much in taxes as he formerly got in wages. 1
H. L. Mencken
Reply With Quote
  #4  
Old 08-26-2008, 08:36 PM
Richard Maine
Guest
 
Default Re: novice needs help

Ron Ford <ron@example.invalid> wrote:

> .in sounds like an .ini file, probably created the program.


I would guess more likely to be an input data file for the program, or
possibly an include file of source code. But those are all just pretty
random guesses, as the file extension alone doesn't tell much in this
case.

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
Reply With Quote
  #5  
Old 08-27-2008, 11:48 AM
Kevin G. Rhoads
Guest
 
Default Re: novice needs help

>i have been given a couple of small programs with a .FOR extension and
>advised that this program - http://gcc.gnu.org/wiki/GFortranBinaries
>would be the best way of compiling them. As i use windows XP


If these are not proprietary or secret, someone else could compile
them for you. I'm offering.

OpenWatcom is C & F77 (.FOR is often F77 as opposed to F90 or
later fortran standards) and OpenWatcom is free. It can
run on DOS, Win16, Win32 (including XP) and OS/2 and can
target all of those (and more) from any one of those.
Reply With Quote
  #6  
Old 08-28-2008, 08:08 PM
kronecker@yahoo.co.uk
Guest
 
Default Re: novice needs help

On Aug 27, 5:59 am, houseofa...@googlemail.com wrote:
> hello,
>
> i have been given a couple of small programs with a .FOR extension and
> advised that this program -http://gcc.gnu.org/wiki/GFortranBinaries
> would be the best way of compiling them. As i use windows XP i have
> installed the native version, but now i have no idea what the next
> stage of compiling the programs is - any help would be appreciated -
> e.g. what part to open.
>
> The programs are either just a .FOR file or have associated .1 and .2
> or .IN associations i am more interested in the FOR and .IN files
>
> Many thanks for any help
>
> andy


Write in C, write in C...
Reply With Quote
  #7  
Old 09-01-2008, 02:53 AM
Arjen Markus
Guest
 
Default Re: novice needs help

On 29 aug, 02:08, kronec...@yahoo.co.uk wrote:
> On Aug 27, 5:59 am, houseofa...@googlemail.com wrote:
>
> > hello,

>
> > i have been given a couple of small programs with a .FOR extension and
> > advised that this program -http://gcc.gnu.org/wiki/GFortranBinaries
> > would be the best way of compiling them. As i use windows XP i have
> > installed the native version, but now i have no idea what the next
> > stage of compiling the programs is - any help would be appreciated -
> > e.g. what part to open.

>
> > The programs are either just a .FOR file or have associated .1 and .2
> > or .IN associations i am more interested in the FOR and .IN files

>
> > Many thanks for any help

>
> > andy

>
> Write in C, write in C...


Apart from not being helpful at all, this clearly marks you as
a troll.

Regards,

Arjen
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 02:55 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.