Francois - after some investigation, I've finally come to a solution that
seems to work for me (using gfortran on Win98).
I do believe it is an installation problem.
I've installed gfortran under the root drive (c:\gfortran)
The installation package produces the following directory structure:
c:\gfortran
c:\gfortran\bin
c:\gfortran\include
c:\gfortran\include\ssp
c:\gfortran\include\sys
c:\gfortran\lib
c:\gfortran\lib\gcc
c:\gfortran\lib\gcc\i686-pc-mingw32
c:\gfortran\lib\gcc\i686-pc-mingw32\4.1.0
c:\gfortran\lib\gcc\i686-pc-mingw32\4.1.0\include
c:\gfortran\lib\gcc\i686-pc-mingw32\4.1.0\install-tools
c:\gfortran\lib\gcc\i686-pc-mingw32\4.1.0\install-tools\include
c:\gfortran\libexec
c:\gfortran\libexec\gcc
c:\gfortran\libexec\gcc\i686-pc-mingw32
c:\gfortran\libexec\gcc\i686-pc-mingw32\4.1.0
c:\gfortran\libexec\gcc\i686-pc-mingw32\4.1.0\include
c:\gfortran\libexec\gcc\i686-pc-mingw32\4.1.0\install-tools
The following components are stored in the
"c:\gfortran\libexec\gcc\i686-pc-mingw32\4.1.0" directory:
f951.exe
cc1.exe
collect2.exe
**** The Fix ****
I recommend you move these components to the "gfortran\bin" directory. Make
sure you have specified an appropriate PATH environment variable (SET
PATH=%PATH%;c:\gfortran\bin).
***************
Once I did this, it seems that I am now truely able to compile and link from
any location (via DOS box, bat files, make, editors, etc).