Ainul
1
I already install PGI Fortran and Imsl library on my Computer. I already setup the IMSL Numerical Library using :
C:\Program Files (x86)\VNI\imsl\fnl700\winpg119x64\bin\fnlsetup.bat
but, when I try to validate the installation,
C:\Program Files (x86)\VNI\imsl\fnl700\winpg119x64\examples\validate>pgfortran imslmp.f90
PGF90-F-0004-Unable to open MODULE file rand_gen_int.mod (imslmp.f90: 3)
PGF90/x86-64 Windows 13.10-0: compilation aborted
How to solve this problem?
Thank you
tull
2
The modfiles needs to exist, or the compilers need to know where
the modfile is.
If rand_gen_int.mod is generated from a source file like
rand_gen_int.f90, then you need to generate it BEFORE compiling
imslmp.f90
pgf90 -c rand_gen_int.f90 imslmp.f90
should work, since rand_gen_int.f90 is compiled first.
If rand_gen_int.mod exists in directory /home/foo/modfiles
pgf90 -c imslmp.f90 -I/home/foo/modfiles
will also work.
dave
Ainul
3
Thank you Dr Dave,
I use
pgf90 -c imslmp.f90 -I"C:\VNI\imsl\fnl700\winpg119x64\include"
but, the only output file is .obj files
tull
4
Yes, you used
-c
which means stop after compiling. So it did what it was supposed to
This means the modfile was found and no other
source was needed to compile.
Also
*.o files are Linux/OS X object files.
*.obj are windows object files. Sometimes I put .o for object
files on Windows and that is incorrect.
dave