Dear friends, this morning I have encountered a very strange and purplexing
error message from IBM xlf90 compiler. The problem occurs if I have two
subroutines in a single file. Here is the file test.f90.
% cat test.f90
SUBROUTINE sub1
END SUBROUTINE sub1
SUBROUTINE sub2
END SUBROUTINE sub2
Now when I try to compile this file,
% xlf90 -F:f90 -c test.f90
** sub1 === End of Compilation 1 ===
** sub2 === End of Compilation 2 ===
1501-510 Compilation successful for file test.f90.
ld: 0711-245 WARNING: No csects or exported symbols have been saved.
Can anyone tell me what this error message mean? Am I not allowed to have more
than one subroutines in a single file? It was okay with F77, so it must be
okay with Fortran 90, right? Later on, linking of complete program fails
because sub1 and sub2 are not defined in test.o file.
Any help, explanation, and/or suggestion?
I am using IBM SP2 machines and they recently did some system upgrade and
experienced some problem after that. Is this related to that or is this purely
my lack of knowledge on Fortran 90?
Many thanks in advance.
------------------------------------------------------------------------------
Seong-Gon Kim, Ph.D. (202) 404-4419 [work] (703) 866-9584 [home]
Code 6690 (202) 404-7546 [Fax]
Naval Research Laboratory [log in to unmask] [email]
Washington, DC 20375-5320 http://www.pa.msu.edu/~kimsg/ [www]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|