From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,4e64b3f57c6d8277 X-Google-Attributes: gid1164f8,public From: lionel@quark.enet.dec.com (Steve Lionel) Subject: Re: Cross Compiling C/C++ and Fortran on a Dec Alpha Date: 1995/11/15 Message-ID: <48dd9e$75t@zk2nws.zko.dec.com>#1/1 X-Deja-AN: 119435310 distribution: world references: <488ept$hlv@solaris.cc.vt.edu> organization: Digital Equipment Corporation, Nashua NH reply-to: lionel@quark.enet.dec.com (Steve Lionel) newsgroups: comp.sys.dec In article <488ept$hlv@solaris.cc.vt.edu>, Matthew Kaufman writes: |>I have a code which was written in C/C++, but utilizes the LAPACK linear |>algebra libraries which were written in Fortran. The code was developed on an |>IRIX system, but I need to get the code up and running on a Dec Alpha. So, I |>need to know what libraries to include to handle the Fotran <---> C/C++ |>communication. |> |>Since I don't have the Alpha, I don't have the manuals :(. Anybody familiar |>with the process? If it's just C and Fortran, use the f77 driver to compile and load all the sources - it knows what to do. But with C++, you'd have to compile either the C++ code or the Fortran code separately and then link them specifying the appropriate libraries. You can find what libraries are used by compiling a test program and specifying -v - you'll get the driver commands listed on the terminal, including the libraries specified to ld. The library switches f77 uses are: -lUfor -lfor -lFutil -lm -lots -lc -- Steve Lionel Mail: lionel@quark.enet.dec.com DEC Fortran Development WWW: http://www.digital.com/info/slionel.html Digital Equipment Corporation CompuServe: 75263,3001 110 Spit Brook Road, ZKO2-3/N30 Nashua, NH 03062-2698 "Free advice is worth every cent" For information on DEC Fortran 90, see http://www.digital.com/info/hpc/f90/