I’ve met a problem when I was trying to build an application by PGI Fortran 7.1-2 Win32.
The short test case is below. Originally it was 416.gamess benchmark from SPEC CPU2006.
$ cat m.f
PROGRAM BUG CALL HSSFUL END
$ cat hess.fppized.f
SUBROUTINE HSSFUL CALL UPRCAS(WORD,8) RETURN END
$ cat frfmt.fppized.f
SUBROUTINE UPRCAS(STRING,LENSTR) CHARACTER*(*) STRING RETURN END
pgf95 frfmt.fppized.f m.f hess.fppized.f
hess.fppized.obj : error LNK2019: unresolved external symbol _UPRCAS@8 referenced in function _HSSFUL@0
frfmt.fppized.exe : fatal error LNK1120: 1 unresolved externals
However I’ve observed that if the files are compiled with -Munix the application has been being built and no unresolved symbols appeared.
So, the first question is what does my problem look like?
And is it a proper way to use -Munix for such case?