home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sgi / 11466 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  1.1 KB

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