Bernard Leclerc (bleclerc++at++poster.cae.ca)
Mon, 23 Jun 1997 09:58:38 -0400
> 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
Try declaring your routine
extern "C" int simmain_(void);
On SGI, the FORTRAN compiler appends an underscore to the subroutine name.
> 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.
--
Bernard Leclerc, Technical Leader, 3-D Graphics Applications
CAE Electronics Ltd. (http://www.cae.ca)
8585 Cote De Liesse, Saint-Laurent, Quebec, Canada, H4L-4X4
tel: +1 514 341 2000 extension 2275, fax: +1 514 340 5496
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:29 PDT