Hi, CaKiwi:
Thanks.
I use HP-UX. Now I found a way to link these object by using +ppu flag, which appends a underscore behind ABC, so that
f77 compiler can find ABC_().
In this case, should be ABC_(int *X), in
Fortran code, should be CALL ABC(X). In my previous post, order was wrong.
Binbin
Hi, anybody can help me!!
I want to call a C function from a Fortran code, For example, I have a C function void ABC(int *x) saved in C_file.c, I want to call this ABC from a Fortran code, such as
Integer X
Call ABC_(X)
which is in F_file.f
So How to link and compile and run this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.