"Amit" <ku*****@gmail.com> writes:
I tried calling a subroutine in a fortran module from C ,but couldn't.I
always get the error: undefined reference in the main.o file (main is
in C calling the subroutine).
for calling the subroutine I used the following name:
modulename_MP_subroutinename_(...)
and all possible variant (upper case,lower case).Can anybody help (for
a unix system)
Probably not here. The C language doesn't define the mechanism for
calling Fortran subroutines; it's likely to depend on the OS and on
the C and Fortran compilers. If the documentation for your Fortran
compiler doesn't have the information you need, you might try
comp.unix.programmer.
--
Keith Thompson (The_Other_Keith)
ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.