home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!mips!odin!sgi!quasar.wpd.sgi.com!davea
- From: davea@quasar.wpd.sgi.com (David B.Anderson)
- Newsgroups: comp.sys.sgi
- Subject: Re: How to link C object with Fortran library?
- Summary: use f77 driver, f77 main program
- Keywords: Linkingobject with library
- Message-ID: <nr1ibl8@sgi.sgi.com>
- Date: 27 Jul 92 18:53:11 GMT
- References: <1765@kluge.fiu.edu>
- Sender: davea@quasar.wpd.sgi.com
- Organization: Silicon Graphics, Inc. Mountain View, CA
- Lines: 14
-
- In article <1765@kluge.fiu.edu>, sumargoh@serss0.fiu.edu (H. Sumargo) writes:
- >
- > I guess that the above subject explained it all. FYI, I would like to be able to
- > write a program in C language that has the capability of doing complex math. I know
- > that C language does not support complex math (If I am not mistaken) without additional
- [ ]
- > Linking the C object with the ForTran library:
- > cc -O3 -o main main.o sub.a -lm
-
- Use f77 to do the linking, not cc.
- Use -v to see what libraries that links in.
-
- Regards,
- [ David B. Anderson (415)390-1548 davea@sgi.com ]
-