How to declare Fortran subroutine in C++ compiler??

New Message Reply Date view Thread view Subject view Author view

Ren-Jye Yu (renjye++at++python.tamu.edu)
Sun, 22 Jun 1997 00:12:15 -0500


Hello,

        I have a math subroutine which is written by Fortran. I use C++
compiler to compile my Performer program. This math routine is part of my
main(). When I compile this mixed language program, I get a unresolved "routine
name" error.

        I declare this math routine as "extern int simmain()" in main.c. I
compiled it by using f77, Fortran compiler. I put the simmain.o and -lF77,
-lU77, -lI77,-lisam, -lm in the CC command line. I also tried to switch the
location of simmain.o and main.o in the CC command line.

        Do I make any mistake? Or I forgot somethings else? I successed in
compiling the C and Fortran mixed program. I realy need your help. I will very
appreciate for you help. Have a nice day.

p/s : my OS is IRIX 6.2

-- 

______________________________________________________________________________

("`-''-/").___..--''"`-._ Ren-Jye Yu `6_ 6 ) `-. ( ).`-.__.`) Email :renjye++at++python.tamu.edu (_Y_.)' ._ ) `._ `. ``-..-' Phone(O) :(409) 845-0729 _..`--'_..-_/ /--'_.' ,' (H) :(409) 691-8570 (il),-'' (li),' ((!.-' Address :Aerospace Engineering Department H.R. Bright Building Texas A&M University College Station 77840-3141 _______________________________________________________________________________

======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:29 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.