Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Cross Compiling C/C++ and Fortran on a Dec Alpha
@ 1995-11-13  5:00 Matthew Kaufman
  1995-11-15  5:00 ` Steve Lionel
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew Kaufman @ 1995-11-13  5:00 UTC (permalink / raw)


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?
-- 
-------------------------------------------------
Matthew Kaufman       |                          \\\
Virginia Tech         |                      \\   \\\
Aerospace Engineering | kaufman@aoe.vt.edu   |->==|  >==>
215 Randolph Hall     |                      //   ///
Blacksburg, VA 24061  |                          ///
-------------------------------------------------




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Cross Compiling C/C++ and Fortran on a Dec Alpha
  1995-11-13  5:00 Cross Compiling C/C++ and Fortran on a Dec Alpha Matthew Kaufman
@ 1995-11-15  5:00 ` Steve Lionel
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Lionel @ 1995-11-15  5:00 UTC (permalink / raw)



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/



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-11-15  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox