This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fwd: Guru advice regarding Gfortran numeric libraries like AFNL or IMSL


This is now a generic Fortran language question, no longer a specific
gfortran question; the message you are seeing points to an error in
the source code, and is really quite clear: you have (willingly or
inadvertently) defined a generic interface containing both a
subroutine and a function, and this is not allowed.
Without access to the source code it is impossible to say more.

Regards
Salvatore

Frank Hauptle wrote:
OK, sweet, thankyou Mr Salvatore (and everyone else that has helped)...

so anyway, I blew away the directory and re-extracted the AFNL source
and ran make again, all on the Fed 17 box.


[root@galleon afnl]# gfortran --version
GNU Fortran (GCC) 4.7.0 20120507 (Red Hat 4.7.0-5)
Copyright (C) 2012 Free Software Foundation, Inc.



Got this:

###############################################################
[root@galleon afnl]# make
gfortran -c numtypes.o error.o constants.o linear.o nonnum.o
/home/ylan/afnl/src/statistics.f90 -o statistics.o
/home/ylan/afnl/src/statistics.f90:1801.2:

Function Irand_S(I, J)
1
Error: In generic interface 'irand' at (1) procedures must be either
all SUBROUTINEs or all FUNCTIONs
make: *** [statistics.o] Error 1
###############################################################


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]