
The g95-MinGW.exe g95 Installer
===============================

G95-MinGW.exe is a self-extracting installer for the free
GNU g95 Fortran compiler. It works on Windows XP, 2000,
ME, 95 and 98. 

The g95-MinGW.exe installer allows the user to specify any
install directory for g95. However, if MinGW is already 
installed on your system, it is best to install g95 in the
root MinGW directory, and put the c:\MinGW\bin directory in
your path. The LIBRARY_PATH environment variable should be
set to c:\MinGW\lib.

On systems without MinGW, g95 can be installed along with an
additional set of programs and libraries from the MinGW
distribution, that are needed to run g95. The PATH and the
LIBRARY_PATH environment variable should be properly set up
to find the g95 bin and lib directories.

About MinGW
===========

MinGW ("Minimalistic GNU for Windows") provides an
environment for compiling and linking code based on the GNU
GCC and binutils projects to be run on Win32 platforms. A
complete distribution of MinGW is provided in the file
MinGW-3.2.0-rc-3.exe, available from:

  http://www.mingw.org/download.shtml.

This self-extracting archive includes the MinGW binutils
package, which provides essential programs needed by g95
such as ld.exe (the linker), and as.exe (the GNU assembler),
and various other useful programs and libraries.


Requirements
============

* About 15 MB free space on your hard drive.

INSTALLING THE MINGW G95 FORTRAN COMPILER
=========================================

The g95-MinGW.exe g95 installer extracts the files needed
for g95 to run on supported Windows systems with MinGW
installed. The PATH environment variable should be set
manually to find MinGW and the g95 executable.

Avoid directory names containing spaces, e.g. "c:\Program
Files\.." 

Avoid duplicate entries in your PATH.

Set the LIBRARY_PATH environment variable with:
SET LIBRARY_PATH = <path to your MinGW\lib directory>

INSTALLING ON WINDOWS 95/98/ME
==============================

In Windows 95/98/Me the PATH is usually set in the
autoexec.bat file, which is stored in the root directory of
your hard disk; i.e. c:\. Edit this file and add the
following lines:

  PATH=<MinGW_bin_install_path>;<g95_install_path>;%PATH%
  
  SET LIBRARY_PATH=<MinGW_library_install_path>
  
where <MinGW_bin_install_path> is the full path to the bin
directory of your MinGW installation, and <g95_install_path>
is the path to the directory in which you installed g95, and
<MinGW_library_install_path> is the full path to the
MinGW\lib directory.
      
You can do this by opening this file in Notepad or any other
editor, adding the above line at the end, and then saving
the changes. You must reboot for the changes to take effect.

INSTALLING ON WINDOWS NT/2000/XP
================================

In Windows NT/2000/XP the PATH variable can be set by going
to the Control Panel, selecting System, and then locating
the environment (or advanced, environment) section.

Add a new variable named LIBRARY_PATH and set its value to
<MinGW_library_install_path>, i.e., the full path to the
MinGW\lib directory.

Similarly add a new variable named PATH (or edit it if
already present) and set its value to:

   <MinGW_install_path>;<g95_install_path>;%PATH%
    
Alternatively, place the following line in a batch file, and
run it before invoking g95.

   PATH=<MinGW_install_path>;<g95_install_path>;%PATH%
   SET LIBRARY_PATH = <MinGW_library_install_path>

Replace <MinGW_install_path> with the full path to the bin
directory of your MinGW installation, and <g95_install_path>
with the path to the directory in which you installed g95,
and <MinGW_library_install_path> with the full path to the
MinGW\lib directory.

HOW TO UNINSTALL
================

Run 'Uninstall.exe' to remove all the files installed by
g95-MinGW.exe.

Windows XP Users Note
=====================

MinGW currently allows about 8 mb for the heap on Windows XP. If your application requires access to more memory, try compiling with:
 -Wl,--heap=0x01000000

The GNU g95 Fortran Compiler
============================
       
The g95 website URL is: http://www.g95.org. 

For license details see the file COPYING.txt included in
this package.

The source code for g95 is available at: 
http://www.g95.org/g95_source.tgz

Bug reports should be sent to Andy Vaught: andyv@firstinter.net

Support
=======

For user support try posting a message on the g95 message
board at:
http://groups-beta.google.com/group/gg95

Please include appropriate details such as:

  * the platform and OS you are using 
  * the build of g95 (use 'g95 -v' and post the output)
  * any compiler options used  
  * the error message
  * example code snippet that caused the error
  * specify the version of Cygwin or MinGW used
  * any other pertinent information
  
Documentation
=============

A manual is provided in Pdf format in the doc directory. It
can be viewed using the free Acrobat Reader or in many word
processors.  
  
AUTHOR
======

The script for building the g95-MinGW.exe installer was
written by Doug Cox: tcc@sentex.net

