Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. zhoubinbin

    Call C function from Fortran

    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
  2. zhoubinbin

    Call C function from Fortran

    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...

Part and Inventory Search

Back
Top