***********************************************
September 2, -
mid-Afternoon
Another solution to the DJGPP problem
Windows XP, Windows 2000, and Windows ME do not use
autoexec.bat (Would we say
they have been deprecated or is that term for programming languages only?)
So, students can install the compiler normally to whatever directory they
choose. All they have to do before they
use the compiler command g77 at the
command prompt is to type mingw32.bat
This will set the path for that particular session of the command prompt only,
so students must type it each time they open the command prompt.
*******************************************
It appears that DJGPP doesn’t work easily under XP. At least one student got it up by fiddling for hours. Here are the steps he believes he followed.
How to get GWin32 to work with XP
>
> here are the things that I did, not all of them may be necessary, but this
is how
> I got it to work:
>
> 1. Download and install djg2952 into it's default
directory
> 2. Download and intall Gwin in it's default
directory
> 3. allow it to update autoexec.bat for you (there
is an option)
> 4. restart
> 5. go to c:\ on the command prompt
> 6. edit autoexec.bat
> 7. add CALL c:\gcc-2.95.2\mingw32.bat if it is
not already there
> 8. copy autoexec.bat to the folder containing
your .for file. (may not be
neccesarry, but
> it is something that i did in the processs)
> 9. go to c:\
> 10. type autoexec.bat and hit enter
> 11. go to the folder containing your .for file
>
> you should be able to use the syntax provided by DR. Adams there to
compile the program
Another one of your class mates found another free FORTRAN compiler Force 2.0 which does work. The URL is below.
http://www.nitnet.com.br/~alexande/home.html
Labels on output are optional.
Input data can fill the whole 80 columns – it doesn’t have to be indented to column 7.
You can cause your program to end using a STOP statement. It can occur anywhere in the program. You can have multiple stop statements but that’s really not good form.
the easiest way to see where column 7 is (where program statements should begin – statements should be indented to or past column 7) is to have a comment like the one shown below to show you where to indent to in following lines.
C234567
WRITE (6, 10) X
FORTRAN doesn't ignore spaces in data, it ignores spaces in variable names.