Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tlug: Calling C procedures from FORTRAN



hi,
I am writing a FORTRAN program that calls C procedures. I am using g77
and gcc
compilers.
By default the g77 compiler appends an _(underscore) to function and
subroutine
names. For example my program call a C procedure as follows;
CALL CPROC()

and I have to name the C procedure as cproc_()

Is there any way/option for suppressing this addition of underscore in
FORTRAN so that C procedures can be called directly (without adding an
underscore).

Thanks in advance

Venkatesh Raghavan
Osaka City University

-------------------------------------------------------------------
Next Technical Meeting: February 13 (Sat), 12:30 place: Temple Univ.
** presentation: XEmacs, by Steven Baur and Martin Buchholz
Next Nomikai: March 19 (Fri), 19:30   Tengu TokyoEkiMae 03-3275-3691
-------------------------------------------------------------------
more info: http://tlug.linux.or.jp                     Sponsor: PHT

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links