Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: lionel@quark.enet.dec.com (Steve Lionel)
Subject: Re: Cross Compiling C/C++ and Fortran on a Dec Alpha
Date: 1995/11/15	[thread overview]
Message-ID: <48dd9e$75t@zk2nws.zko.dec.com> (raw)
In-Reply-To: 488ept$hlv@solaris.cc.vt.edu


In article <488ept$hlv@solaris.cc.vt.edu>, Matthew Kaufman <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/



      reply	other threads:[~1995-11-15  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-11-13  5:00 Cross Compiling C/C++ and Fortran on a Dec Alpha Matthew Kaufman
1995-11-15  5:00 ` Steve Lionel [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox