I am trying from a Fortran program, to call a subroutine that I wrote in C...I named the C code file as filename.c and the subroutine is: void filename()
Now in a fortran program, I am calling this subroutine as: Call filename()
I am getting the following error:
fortcom: Error: subrts_Hamact_Lanczos.f, line 1267: This scalar name is invalid in this context. [FILENAME]
compilation aborted for subrts_Hamact_Lanczos.f (code 1)
make: *** [subrts_Hamact_Lanczos.o] Error 1
Can anyone guide me on this? How can I call an external C subroutine from fortran ?