[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GEMPAK #JUX-858931]: PGF fortran code and gnu-built gempak libraries

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [GEMPAK #JUX-858931]: PGF fortran code and gnu-built gempak libraries
  • Date: Thu, 27 Apr 2006 16:02:54 -0600

> Can you provide any guidance for writing and compiling fortran code, 77
> or 90, using the PGF compiler and GEMPAK libraries built with the
> default gnu gcc and g77 compiler builds?
> 

Neil,

I don't have any experience mixing the usage. Both require the use of
the "_" character in the C calls to a fortran routine, and the g77 code
would be compiled with the no_second_underscore flag, so that should be 
compatible.
You will probably have to add to your link line some GLIB specific libraries, 
including the
libg2c gnu library for g77 if you are using pgf77 as the linker.

Steve Chiswell
Unidata User Support

Ticket Details
===================
Ticket ID: JUX-858931
Department: Support GEMPAK
Priority: Normal
Status: Closed